Commit e237194b authored by Marc G. Fournier's avatar Marc G. Fournier

From: Michael Meskes <Michael.Meskes@usa.net>

+
+Wed Dec  9 11:24:54 MEZ 1998
+
+       - Synced preproc.y with gram.y and the keywords.c files to add CASE
+         statement.
+
+Tue Dec 22 14:16:11 CET 1998
+
+       - Synced preproc.y with gram.y for locking statements.
+       - Set version to 2.4.5
parent d7171601
...@@ -356,3 +356,13 @@ Thu Okt 15 10:05:04 CEST 1998 ...@@ -356,3 +356,13 @@ Thu Okt 15 10:05:04 CEST 1998
- Synced preproc.y with gram.y yet again. - Synced preproc.y with gram.y yet again.
- Set version to 2.4.4 - Set version to 2.4.4
Wed Dec 9 11:24:54 MEZ 1998
- Synced preproc.y with gram.y and the keywords.c files to add CASE
statement.
Tue Dec 22 14:16:11 CET 1998
- Synced preproc.y with gram.y for locking statements.
- Set version to 2.4.5
...@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global ...@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
MAJOR_VERSION=2 MAJOR_VERSION=2
MINOR_VERSION=4 MINOR_VERSION=4
PATCHLEVEL=4 PATCHLEVEL=5
CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \
......
...@@ -181,7 +181,7 @@ main(int argc, char *const argv[]) ...@@ -181,7 +181,7 @@ main(int argc, char *const argv[])
/* initialize lex */ /* initialize lex */
lex_init(); lex_init();
/* we need two includes and a constant */ /* we need two includes */
fprintf(yyout, "/* Processed by ecpg (%d.%d.%d) */\n/* These two include files are added by the preprocessor */\n#include <ecpgtype.h>\n#include <ecpglib.h>\n\n", MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL); fprintf(yyout, "/* Processed by ecpg (%d.%d.%d) */\n/* These two include files are added by the preprocessor */\n#include <ecpgtype.h>\n#include <ecpglib.h>\n\n", MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL);
/* and parse the source */ /* and parse the source */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.6 1998/10/03 02:33:36 thomas Exp $ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.7 1998/12/22 18:50:55 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -52,12 +52,14 @@ static ScanKeyword ScanKeywords[] = { ...@@ -52,12 +52,14 @@ static ScanKeyword ScanKeywords[] = {
{"by", BY}, {"by", BY},
{"cache", CACHE}, {"cache", CACHE},
{"cascade", CASCADE}, {"cascade", CASCADE},
{"case", CASE},
{"cast", CAST}, {"cast", CAST},
{"char", CHAR}, {"char", CHAR},
{"character", CHARACTER}, {"character", CHARACTER},
{"check", CHECK}, {"check", CHECK},
{"close", CLOSE}, {"close", CLOSE},
{"cluster", CLUSTER}, {"cluster", CLUSTER},
{"coalesce", COALESCE},
{"collate", COLLATE}, {"collate", COLLATE},
{"column", COLUMN}, {"column", COLUMN},
{"commit", COMMIT}, {"commit", COMMIT},
...@@ -89,6 +91,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -89,6 +91,7 @@ static ScanKeyword ScanKeywords[] = {
{"double", DOUBLE}, {"double", DOUBLE},
{"drop", DROP}, {"drop", DROP},
{"each", EACH}, {"each", EACH},
{"else", ELSE},
{"encoding", ENCODING}, {"encoding", ENCODING},
{"end", END_TRANS}, {"end", END_TRANS},
{"execute", EXECUTE}, {"execute", EXECUTE},
...@@ -115,8 +118,8 @@ static ScanKeyword ScanKeywords[] = { ...@@ -115,8 +118,8 @@ static ScanKeyword ScanKeywords[] = {
{"index", INDEX}, {"index", INDEX},
{"inherits", INHERITS}, {"inherits", INHERITS},
{"inner", INNER_P}, {"inner", INNER_P},
{"insert", INSERT},
{"insensitive", INSENSITIVE}, {"insensitive", INSENSITIVE},
{"insert", INSERT},
{"instead", INSTEAD}, {"instead", INSTEAD},
{"interval", INTERVAL}, {"interval", INTERVAL},
{"into", INTO}, {"into", INTO},
...@@ -155,6 +158,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -155,6 +158,7 @@ static ScanKeyword ScanKeywords[] = {
{"notify", NOTIFY}, {"notify", NOTIFY},
{"notnull", NOTNULL}, {"notnull", NOTNULL},
{"null", NULL_P}, {"null", NULL_P},
{"nullif", NULLIF},
{"numeric", NUMERIC}, {"numeric", NUMERIC},
{"of", OF}, {"of", OF},
{"oids", OIDS}, {"oids", OIDS},
...@@ -202,6 +206,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -202,6 +206,7 @@ static ScanKeyword ScanKeywords[] = {
{"stdout", STDOUT}, {"stdout", STDOUT},
{"substring", SUBSTRING}, {"substring", SUBSTRING},
{"table", TABLE}, {"table", TABLE},
{"then", THEN},
{"time", TIME}, {"time", TIME},
{"timestamp", TIMESTAMP}, {"timestamp", TIMESTAMP},
{"timezone_hour", TIMEZONE_HOUR}, {"timezone_hour", TIMEZONE_HOUR},
...@@ -229,6 +234,7 @@ static ScanKeyword ScanKeywords[] = { ...@@ -229,6 +234,7 @@ static ScanKeyword ScanKeywords[] = {
{"verbose", VERBOSE}, {"verbose", VERBOSE},
{"version", VERSION}, {"version", VERSION},
{"view", VIEW}, {"view", VIEW},
{"when", WHEN},
{"where", WHERE}, {"where", WHERE},
{"with", WITH}, {"with", WITH},
{"work", WORK}, {"work", WORK},
......
This diff is collapsed.
...@@ -57,7 +57,7 @@ struct ECPGtemp_type ...@@ -57,7 +57,7 @@ struct ECPGtemp_type
extern const char *ECPGtype_name(enum ECPGttype typ); extern const char *ECPGtype_name(enum ECPGttype typ);
/* some stuff for whenever statements */ /* some stuff for whenever statements */
enum WHEN enum WHEN_TYPE
{ {
W_NOTHING, W_NOTHING,
W_CONTINUE, W_CONTINUE,
...@@ -70,7 +70,7 @@ enum WHEN ...@@ -70,7 +70,7 @@ enum WHEN
struct when struct when
{ {
enum WHEN code; enum WHEN_TYPE code;
char *command; char *command;
char *str; char *str;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment