Fix issue with creating HostMatch in mod_mam_sql

This fixes issue #2844
This commit is contained in:
Paweł Chmielowski 2019-04-01 10:56:03 +02:00
parent 5c69122bbe
commit 7eef966a04
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ make_sql_query(User, LServer, MAMQuery, RSM, ExtraUsernames) ->
HostMatch = case ejabberd_sql:use_new_schema() of
true ->
[<<" and server_host='", SServer, "'">>];
[<<" and server_host='", SServer/binary, "'">>];
_ ->
<<"">>
end,