diff options
author | Michael Meskes <meskes@postgresql.org> | 1999-07-19 12:37:48 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 1999-07-19 12:37:48 +0000 |
commit | 9f0ffa22417e47bca7655b809bd043dad4ac4601 (patch) | |
tree | b5f364e85fb3676df130be421ad91e29a69a9f05 /src/interfaces/ecpg/lib/ecpglib.c | |
parent | faf7d7817456e3ae23eb882a99283581bae86112 (diff) | |
download | postgresql-9f0ffa22417e47bca7655b809bd043dad4ac4601.tar.gz postgresql-9f0ffa22417e47bca7655b809bd043dad4ac4601.zip |
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/ecpglib.c')
-rw-r--r-- | src/interfaces/ecpg/lib/ecpglib.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c index a51b1ce69c3..2f59c78a67e 100644 --- a/src/interfaces/ecpg/lib/ecpglib.c +++ b/src/interfaces/ecpg/lib/ecpglib.c @@ -209,8 +209,8 @@ add_mem(void *ptr, int lineno) auto_allocs = am; } -/* This function returns a newly malloced string that has the ' and \ - in the argument quoted with \. +/* This function returns a newly malloced string that has the \ + in the argument quoted with \ and the ' quote with ' as SQL92 says. */ static char * @@ -228,8 +228,11 @@ quote_postgres(char *arg, int lineno) switch (arg[i]) { case '\'': + res[ri++] = '\''; + break; case '\\': res[ri++] = '\\'; + break; default: ; } |