mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-16 00:21:39 +00:00
use standard conforming strings if available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f065c65fab
commit
832e22bc45
1 changed files with 9 additions and 1 deletions
10
Postgres.m
10
Postgres.m
|
@ -211,7 +211,15 @@ connectQuote(NSString *str)
|
|||
* the server will warn about backslashes even
|
||||
* in properly quoted strings, so turn it off.
|
||||
*/
|
||||
[self execute: @"SET escape_string_warning=off", nil];
|
||||
if (strcmp(p, "on") == 0)
|
||||
{
|
||||
[self execute: @"SET escape_string_warning=off", nil];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self execute: @"SET standard_conforming_strings=on;"
|
||||
@"SET escape_string_warning=off", nil];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue