Skip to content

Commit 9f0ffa2

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent faf7d78 commit 9f0ffa2

File tree

7 files changed

+107
-218
lines changed

7 files changed

+107
-218
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,3 +609,11 @@ Fri Jun 25 07:17:10 CEST 1999
609609
- Changed error message in ecpglib.c to list correct database name.
610610
- Set library version to 3.0.0
611611
- Set ecpg version to 2.6.0
612+
613+
Mon Jul 19 07:53:20 CEST 1999
614+
615+
- Synced preproc.y with gram.y.
616+
- Synced pgc.l with scan.l.
617+
- Fixed quoting bug in ecpglib.c
618+
- Set ecpg version to 2.6.1
619+
- Set library version to 3.0.1

src/interfaces/ecpg/TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ support for dynamic SQL with unknown number of variables with DESCRIPTORS
1313

1414
The line numbering is not exact.
1515

16-
Inside an SQL statement quoting only works with SQL92 style double quotes: ''.
17-
1816
Missing statements:
1917
- exec sql allocate
2018
- exec sql deallocate

src/interfaces/ecpg/lib/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.44 1999/06/30 23:57:23 tgl Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.45 1999/07/19 12:37:46 meskes Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

1313
NAME= ecpg
1414
SO_MAJOR_VERSION= 3
15-
SO_MINOR_VERSION= 0.0
15+
SO_MINOR_VERSION= 0.1
1616

1717
SRCDIR= @top_srcdir@
1818
include $(SRCDIR)/Makefile.global

src/interfaces/ecpg/lib/ecpglib.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ add_mem(void *ptr, int lineno)
209209
auto_allocs = am;
210210
}
211211

212-
/* This function returns a newly malloced string that has the ' and \
213-
in the argument quoted with \.
212+
/* This function returns a newly malloced string that has the \
213+
in the argument quoted with \ and the ' quote with ' as SQL92 says.
214214
*/
215215
static
216216
char *
@@ -228,8 +228,11 @@ quote_postgres(char *arg, int lineno)
228228
switch (arg[i])
229229
{
230230
case '\'':
231+
res[ri++] = '\'';
232+
break;
231233
case '\\':
232234
res[ri++] = '\\';
235+
break;
233236
default:
234237
;
235238
}

src/interfaces/ecpg/preproc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
33

44
MAJOR_VERSION=2
55
MINOR_VERSION=6
6-
PATCHLEVEL=0
6+
PATCHLEVEL=1
77

88
CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
99
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ identifier {letter}{letter_or_digit}*
132132

133133
typecast "::"
134134

135-
self [,()\[\].;$\:\+\-\*\/\%\<\>\=\|]
135+
self [,()\[\].;$\:\+\-\*\/\%\^\<\>\=\|]
136136
op_and_self [\~\!\@\#\^\&\|\?\$\:\+\-\*\/\%\<\>\=]
137137
operator {op_and_self}+
138138

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy