From 9f0ffa22417e47bca7655b809bd043dad4ac4601 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Mon, 19 Jul 1999 12:37:48 +0000 Subject: *** empty log message *** --- src/interfaces/ecpg/lib/ecpglib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/interfaces/ecpg/lib/ecpglib.c') 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: ; } -- cgit v1.2.3