mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Quote postgresql database name (#1136)
This commit is contained in:
parent
bdfef09c0f
commit
ffbe97d988
@ -790,7 +790,7 @@ pgsql_connect(Server, Port, DB, Username, Password) ->
|
|||||||
{port, Port},
|
{port, Port},
|
||||||
{as_binary, true}]) of
|
{as_binary, true}]) of
|
||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
pgsql:squery(Ref, [<<"alter database ">>, DB, <<" set ">>,
|
pgsql:squery(Ref, [<<"alter database \"">>, DB, <<"\" set ">>,
|
||||||
<<"standard_conforming_strings='off';">>]),
|
<<"standard_conforming_strings='off';">>]),
|
||||||
pgsql:squery(Ref, [<<"set standard_conforming_strings to 'off';">>]),
|
pgsql:squery(Ref, [<<"set standard_conforming_strings to 'off';">>]),
|
||||||
{ok, Ref};
|
{ok, Ref};
|
||||||
|
Loading…
Reference in New Issue
Block a user