Skip to content

Commit 7cf0f63

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent a010be7 commit 7cf0f63

File tree

7 files changed

+234
-137
lines changed

7 files changed

+234
-137
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,3 +730,10 @@ Fri Dec 3 16:35:07 CET 1999
730730

731731
- Fixed memory leak in ecpglib.
732732
- Set library version to 3.0.8.
733+
734+
Wed Dec 8 08:26:13 CET 1999
735+
736+
- Synced preproc.y with gram.y.
737+
- Clean up error handling.
738+
- Set ecpg version to 2.6.11.
739+

src/interfaces/ecpg/TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ DESCRIPTOR statement will be ignored.
1010
If a NOTICE message is given by the backend it should not be printed to
1111
stderr. Instead it should be listed as a warning.
1212

13+
The error handling has to be improved by adding additional error-rules to
14+
the parser.
15+
1316
it would be nice to be able to use :var[:index] as cvariable
1417

1518
support for dynamic SQL with unknown number of variables with DESCRIPTORS

src/interfaces/ecpg/preproc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ include $(SRCDIR)/Makefile.global
33

44
MAJOR_VERSION=2
55
MINOR_VERSION=6
6-
PATCHLEVEL=10
6+
PATCHLEVEL=11
77

88
CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
99
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \
10-
-DINCLUDE_PATH=\"$(HEADERDIR)\"
10+
-DINCLUDE_PATH=\"$(HEADERDIR)\" -g
1111

1212
OBJ=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o \
1313
keywords.o c_keywords.o ../lib/typename.o

src/interfaces/ecpg/preproc/ecpg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "extern.h"
1313

1414
struct _include_path *include_paths;
15-
int autocommit = 0;
15+
int ret_value = OK, autocommit = 0;
1616
struct cursor *cur = NULL;
1717
struct typedefs *types = NULL;
1818

@@ -215,5 +215,5 @@ main(int argc, char *const argv[])
215215
free(input_filename);
216216
}
217217
}
218-
return OK;
218+
return ret_value;
219219
}

src/interfaces/ecpg/preproc/extern.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
/* variables */
66

77
extern int braces_open,
8-
autocommit,
9-
struct_level;
8+
autocommit,
9+
ret_value,
10+
struct_level;
1011
extern char *yytext,
1112
errortext[128];
1213
extern int yylineno,

src/interfaces/ecpg/preproc/keywords.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.19 1999/10/15 19:02:08 meskes Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.20 1999/12/08 09:52:29 meskes Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -220,6 +220,7 @@ static ScanKeyword ScanKeywords[] = {
220220
{"stdin", STDIN},
221221
{"stdout", STDOUT},
222222
{"substring", SUBSTRING},
223+
{"sysid", SYSID},
223224
{"table", TABLE},
224225
{"temp", TEMP},
225226
{"temporary", TEMPORARY},

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