fixup for warnings about escapes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38068 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-09-10 08:45:58 +00:00
parent 90476078d5
commit b1ccabeb7e

View file

@ -201,19 +201,21 @@ connectQuote(NSString *str)
p = PQparameterStatus(connection, "standard_conforming_strings");
if (p != 0)
{
/* The standard conforming strings setting exists,
* so the E'...' syntax must exist and we can use
* it for byte arrays.
*/
escapeStrings = YES;
/* If the escape_string_warning setting is on,
* the server will warn about backslashes even
* in properly quoted strings, so turn it off.
*/
[self execute: @"SET escape_string_warning=off", nil];
}
else
{
p = PQparameterStatus(connection, "escape_string_warning");
if (p != 0)
{
escapeStrings = YES;
}
else
{
escapeStrings = NO;
}
escapeStrings = NO;
}
if ([self debugging] > 0)