25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

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

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,