mirror of
https://github.com/postgres/postgres.git
synced 2026-06-03 22:04:18 -04:00
Fix ecpg quoting bug in 6.5.* release.
This commit is contained in:
parent
ef26b944b1
commit
e539eb2f44
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue