Fix ecpg quoting bug in 6.5.* release.

REL6_5_PATCHES
Bruce Momjian 26 years ago
parent ef26b944b1
commit e539eb2f44
  1. 2
      src/interfaces/ecpg/lib/ecpglib.c

@ -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…
Cancel
Save