From: Paweł Chmielowski Date: Mon, 1 Apr 2019 08:56:03 +0000 (+0200) Subject: Fix issue with creating HostMatch in mod_mam_sql X-Git-Tag: 19.05~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eef966a04456600e1c77f6e97bc2e9772aa128b;p=ejabberd Fix issue with creating HostMatch in mod_mam_sql This fixes issue #2844 --- diff --git a/src/mod_mam_sql.erl b/src/mod_mam_sql.erl index 7716d6ddf..a8dc566e6 100644 --- a/src/mod_mam_sql.erl +++ b/src/mod_mam_sql.erl @@ -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,