File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -2322,3 +2322,13 @@ Sun, 17 Feb 2008 18:45:39 +0100
2322
2322
- Removed duplicate include of ecpgtype.h.
2323
2323
- Changed INFORMIX mode symbol definition yet again because the old
2324
2324
way didn't work on NetBSD.
2325
+
2326
+ Sun, 02 Mar 2008 11:50:48 +0100
2327
+
2328
+ - Fixed bug that caused arrays of varchar to be output with incomplete
2329
+ name.
2330
+
2331
+ Thu, 20 Mar 2008 16:54:27 +0100
2332
+
2333
+ - Changed statement escaping to not escape continuation line markers.
2334
+ - Bumped ecpg version number to 4.4.1.
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1998-2008, PostgreSQL Global Development Group
6
6
#
7
- # $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.130 2008/01/01 19:45:59 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.130.2.1 2008/03/20 16:04:52 meskes Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
15
15
16
16
MAJOR_VERSION = 4
17
17
MINOR_VERSION = 4
18
- PATCHLEVEL =0
18
+ PATCHLEVEL =1
19
19
20
20
override CPPFLAGS := -I../include -I$(top_srcdir ) /src/interfaces/ecpg/include \
21
21
-I$(srcdir ) -DMAJOR_VERSION=$(MAJOR_VERSION ) \
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/output.c,v 1.23 2007/11/15 21:14:45 momjian Exp $ */
1
+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/output.c,v 1.23.2.1 2008/03/20 16:04:52 meskes Exp $ */
2
2
3
3
#include "postgres_fe.h"
4
4
@@ -193,7 +193,18 @@ output_escaped_str(char *str, bool quoted)
193
193
else if (str [i ] == '\n' )
194
194
fputs ("\\\n" , yyout );
195
195
else if (str [i ] == '\\' )
196
- fputs ("\\\\" , yyout );
196
+ {
197
+ int j = i ;
198
+
199
+ /* check whether this is a continuation line
200
+ * if it is, do not output anything because newlines are escaped anyway */
201
+
202
+ /* accept blanks after the '\' as some other compilers do too */
203
+ do { j ++ ; } while (str [j ] == ' ' || str [j ] == '\t' );
204
+
205
+ if ((str [j ] != '\n' ) && (str [j ] != '\r' || str [j + 1 ] != '\n' )) /* not followed by a newline */
206
+ fputs ("\\\\" , yyout );
207
+ }
197
208
else if (str [i ] == '\r' && str [i + 1 ] == '\n' )
198
209
{
199
210
fputs ("\\\r\n" , yyout );
You can’t perform that action at this time.
0 commit comments