projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef26b94
)
Fix ecpg quoting bug in 6.5.* release.
author
Bruce Momjian
<
[email protected]
>
Sun, 7 Nov 1999 12:18:37 +0000
(12:18 +0000)
committer
Bruce Momjian
<
[email protected]
>
Sun, 7 Nov 1999 12:18:37 +0000
(12:18 +0000)
src/interfaces/ecpg/lib/ecpglib.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/lib/ecpglib.c
b/src/interfaces/ecpg/lib/ecpglib.c
index aae621fed45c0df5411083defee161dfa8a82c53..2b9a984c007c0eb99e5dc6e512c6cb64948e0adb 100644
(file)
--- 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;