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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user