25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Explicitly set standard_conforming_strings to off with PostreSQL

This commit is contained in:
Alexey Shchepin 2015-03-09 16:37:35 +03:00 committed by Christophe Romain
parent 51508a9fc3
commit b7726ee392

View File

@ -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