mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Fix ecpg quoting bug in 6.5.* release.
This commit is contained in:
@@ -365,7 +365,7 @@ next_insert(char *text)
|
|||||||
bool string = false;
|
bool string = false;
|
||||||
|
|
||||||
for (; *ptr != '\0' && (*ptr != '?' || string); ptr++)
|
for (; *ptr != '\0' && (*ptr != '?' || string); ptr++)
|
||||||
if (*ptr == '\'')
|
if (*ptr == '\'' && *(ptr-1) != '\\')
|
||||||
string = string ? false : true;
|
string = string ? false : true;
|
||||||
|
|
||||||
return (*ptr == '\0') ? NULL : ptr;
|
return (*ptr == '\0') ? NULL : ptr;
|
||||||
|
Reference in New Issue
Block a user