Skip to content

Commit

Permalink
fix mod_mam_odbc_user for ODBC layer
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwski committed May 11, 2015
1 parent 4299206 commit 702a40c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ejabberd/src/mod_mam_odbc_user.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ query_archive_id(Host, Server, UserName) ->
Result = do_query_archive_id(DbType, Host, SServer, SUserName),

case Result of
{selected, [<<"id">>], [{IdBin}]} ->
{selected, [<<"id">>], [{IdBin}]} when is_binary(IdBin) ->
binary_to_integer(IdBin);
{selected, [<<"id">>], [{IdBin}]}->
IdBin;
{selected, [<<"id">>], []} ->
%% The user is not found
create_user_archive(Host, Server, UserName),
Expand Down

0 comments on commit 702a40c

Please sign in to comment.