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:
Richard Frith-MacDonald 2014-09-10 12:05:47 +00:00
parent f065c65fab
commit 832e22bc45

View file

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