1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Fix ecpg quoting bug in 6.5.* release.

This commit is contained in:
Bruce Momjian
1999-11-07 12:18:37 +00:00
parent ef26b944b1
commit e539eb2f44

View File

@@ -365,7 +365,7 @@ next_insert(char *text)
bool string = false;
for (; *ptr != '\0' && (*ptr != '?' || string); ptr++)
if (*ptr == '\'')
if (*ptr == '\'' && *(ptr-1) != '\\')
string = string ? false : true;
return (*ptr == '\0') ? NULL : ptr;