fix pubsub unsubscription without SubId on odbc

This commit is contained in:
Christophe Romain 2013-07-04 15:13:21 +02:00
parent 60600c341e
commit 0266207e9d
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ unsubscribe_node(NodeId, Sender, Subscriber, SubId) ->
{Affiliation, Subscriptions} =
select_affiliation_subscriptions(NodeId, SubKey),
SubIdExists = case SubId of
[] -> false;
<<>> -> false;
List when is_binary(List) -> true;
_ -> false
end,