Fix ecpg quoting bug in 6.5.* release.
authorBruce Momjian <[email protected]>
Sun, 7 Nov 1999 12:18:37 +0000 (12:18 +0000)
committerBruce Momjian <[email protected]>
Sun, 7 Nov 1999 12:18:37 +0000 (12:18 +0000)
src/interfaces/ecpg/lib/ecpglib.c

index aae621fed45c0df5411083defee161dfa8a82c53..2b9a984c007c0eb99e5dc6e512c6cb64948e0adb 100644 (file)
@@ -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;