diff --git a/src/ejabberd_odbc.erl b/src/ejabberd_odbc.erl index 5828912d5..c1236ba86 100644 --- a/src/ejabberd_odbc.erl +++ b/src/ejabberd_odbc.erl @@ -502,6 +502,7 @@ pgsql_connect(Server, Port, DB, Username, Password) -> {ok, Ref} -> pgsql:squery(Ref, [<<"alter database ">>, DB, <<" set ">>, <<"standard_conforming_strings='off';">>]), + pgsql:squery(Ref, [<<"set standard_conforming_strings to 'off';">>]), {ok, Ref}; Err -> Err