summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1999-11-07 12:18:37 +0000
committerBruce Momjian1999-11-07 12:18:37 +0000
commite539eb2f44a01dd4d7ccee71a21c74877fdac37c (patch)
treebe7298e7c8ae5056ab5955d96b69ea1a4559eb27
parentef26b944b12ce52b14101512c39cf7a42ca970a6 (diff)
Fix ecpg quoting bug in 6.5.* release.
-rw-r--r--src/interfaces/ecpg/lib/ecpglib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c
index aae621fed45..2b9a984c007 100644
--- a/src/interfaces/ecpg/lib/ecpglib.c
+++ b/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;