]> granicus.if.org Git - ejabberd/commitdiff
Fix issue with creating HostMatch in mod_mam_sql
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 1 Apr 2019 08:56:03 +0000 (10:56 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 1 Apr 2019 08:56:03 +0000 (10:56 +0200)
This fixes issue #2844

src/mod_mam_sql.erl

index 7716d6ddfacf50ad0ca8eb7f112ed50d22b5305f..a8dc566e61c9cd65a7548d9c4cbe7f39c4014b9e 100644 (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,