*** empty log message ***
This commit is contained in:
parent
d1d97a9185
commit
66270c94e1
@ -643,3 +643,8 @@ Fri Sep 17 18:16:34 CEST 1999
|
|||||||
- Made sure sqlca is initialized everytime.
|
- Made sure sqlca is initialized everytime.
|
||||||
- Set library version to 3.0.3
|
- Set library version to 3.0.3
|
||||||
|
|
||||||
|
Mon Sep 27 07:40:20 CEST 1999
|
||||||
|
|
||||||
|
- Synced preproc.y with gram.y.
|
||||||
|
- Synced keyword.c.
|
||||||
|
- Set ecpg version to 2.6.5
|
||||||
|
@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
|
|||||||
|
|
||||||
MAJOR_VERSION=2
|
MAJOR_VERSION=2
|
||||||
MINOR_VERSION=6
|
MINOR_VERSION=6
|
||||||
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) \
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.16 1999/07/17 20:18:39 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.17 1999/09/27 10:41:02 meskes Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
/* name, value */
|
/* name, value */
|
||||||
{"abort", ABORT_TRANS},
|
{"abort", ABORT_TRANS},
|
||||||
{"absolute", ABSOLUTE},
|
{"absolute", ABSOLUTE},
|
||||||
|
{"access", ACCESS},
|
||||||
{"action", ACTION},
|
{"action", ACTION},
|
||||||
{"add", ADD},
|
{"add", ADD},
|
||||||
{"after", AFTER},
|
{"after", AFTER},
|
||||||
@ -61,6 +62,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"collate", COLLATE},
|
{"collate", COLLATE},
|
||||||
{"column", COLUMN},
|
{"column", COLUMN},
|
||||||
{"commit", COMMIT},
|
{"commit", COMMIT},
|
||||||
|
{"committed", COMMITTED},
|
||||||
{"constraint", CONSTRAINT},
|
{"constraint", CONSTRAINT},
|
||||||
{"copy", COPY},
|
{"copy", COPY},
|
||||||
{"create", CREATE},
|
{"create", CREATE},
|
||||||
@ -90,7 +92,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"encoding", ENCODING},
|
{"encoding", ENCODING},
|
||||||
{"end", END_TRANS},
|
{"end", END_TRANS},
|
||||||
{"except", EXCEPT},
|
{"except", EXCEPT},
|
||||||
|
{"exclusive", EXCLUSIVE},
|
||||||
{"execute", EXECUTE},
|
{"execute", EXECUTE},
|
||||||
{"exists", EXISTS},
|
{"exists", EXISTS},
|
||||||
{"explain", EXPLAIN},
|
{"explain", EXPLAIN},
|
||||||
@ -105,6 +107,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"from", FROM},
|
{"from", FROM},
|
||||||
{"full", FULL},
|
{"full", FULL},
|
||||||
{"function", FUNCTION},
|
{"function", FUNCTION},
|
||||||
|
{"global", GLOBAL},
|
||||||
{"grant", GRANT},
|
{"grant", GRANT},
|
||||||
{"group", GROUP},
|
{"group", GROUP},
|
||||||
{"handler", HANDLER},
|
{"handler", HANDLER},
|
||||||
@ -119,7 +122,6 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"insert", INSERT},
|
{"insert", INSERT},
|
||||||
{"instead", INSTEAD},
|
{"instead", INSTEAD},
|
||||||
{"intersect", INTERSECT},
|
{"intersect", INTERSECT},
|
||||||
|
|
||||||
{"interval", INTERVAL},
|
{"interval", INTERVAL},
|
||||||
{"into", INTO},
|
{"into", INTO},
|
||||||
{"is", IS},
|
{"is", IS},
|
||||||
@ -143,6 +145,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"maxvalue", MAXVALUE},
|
{"maxvalue", MAXVALUE},
|
||||||
{"minute", MINUTE_P},
|
{"minute", MINUTE_P},
|
||||||
{"minvalue", MINVALUE},
|
{"minvalue", MINVALUE},
|
||||||
|
{"mode", MODE},
|
||||||
{"month", MONTH_P},
|
{"month", MONTH_P},
|
||||||
{"move", MOVE},
|
{"move", MOVE},
|
||||||
{"names", NAMES},
|
{"names", NAMES},
|
||||||
@ -199,8 +202,10 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"select", SELECT},
|
{"select", SELECT},
|
||||||
{"sequence", SEQUENCE},
|
{"sequence", SEQUENCE},
|
||||||
{"serial", SERIAL},
|
{"serial", SERIAL},
|
||||||
|
{"serializable", SERIALIZABLE},
|
||||||
{"set", SET},
|
{"set", SET},
|
||||||
{"setof", SETOF},
|
{"setof", SETOF},
|
||||||
|
{"share", SHARE},
|
||||||
{"show", SHOW},
|
{"show", SHOW},
|
||||||
{"start", START},
|
{"start", START},
|
||||||
{"statement", STATEMENT},
|
{"statement", STATEMENT},
|
||||||
@ -221,6 +226,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||||||
{"trigger", TRIGGER},
|
{"trigger", TRIGGER},
|
||||||
{"trim", TRIM},
|
{"trim", TRIM},
|
||||||
{"true", TRUE_P},
|
{"true", TRUE_P},
|
||||||
|
{"truncate", TRUNCATE},
|
||||||
{"trusted", TRUSTED},
|
{"trusted", TRUSTED},
|
||||||
{"type", TYPE_P},
|
{"type", TYPE_P},
|
||||||
{"union", UNION},
|
{"union", UNION},
|
||||||
|
@ -727,7 +727,7 @@ adjust_array(enum ECPGttype type_enum, int *dimension, int *length, int type_dim
|
|||||||
OFFSET, OIDS, OPERATOR, PASSWORD, PROCEDURAL,
|
OFFSET, OIDS, OPERATOR, PASSWORD, PROCEDURAL,
|
||||||
RENAME, RESET, RETURNS, ROW, RULE,
|
RENAME, RESET, RETURNS, ROW, RULE,
|
||||||
SERIAL, SEQUENCE, SETOF, SHARE, SHOW, START, STATEMENT, STDIN, STDOUT,
|
SERIAL, SEQUENCE, SETOF, SHARE, SHOW, START, STATEMENT, STDIN, STDOUT,
|
||||||
TRUSTED,
|
TRUNCATE, TRUSTED,
|
||||||
UNLISTEN, UNTIL, VACUUM, VALID, VERBOSE, VERSION
|
UNLISTEN, UNTIL, VACUUM, VALID, VERBOSE, VERSION
|
||||||
|
|
||||||
/* Special keywords, not in the query language - see the "lex" file */
|
/* Special keywords, not in the query language - see the "lex" file */
|
||||||
@ -777,7 +777,7 @@ adjust_array(enum ECPGttype type_enum, int *dimension, int *length, int type_dim
|
|||||||
%type <str> update_target_el opt_id relation_name database_name
|
%type <str> update_target_el opt_id relation_name database_name
|
||||||
%type <str> access_method attr_name class index_name name func_name
|
%type <str> access_method attr_name class index_name name func_name
|
||||||
%type <str> file_name AexprConst ParamNo TypeId
|
%type <str> file_name AexprConst ParamNo TypeId
|
||||||
%type <str> in_expr_nodes a_expr b_expr
|
%type <str> in_expr_nodes a_expr b_expr TruncateStmt
|
||||||
%type <str> opt_indirection expr_list extract_list extract_arg
|
%type <str> opt_indirection expr_list extract_list extract_arg
|
||||||
%type <str> position_list substr_list substr_from
|
%type <str> position_list substr_list substr_from
|
||||||
%type <str> trim_list in_expr substr_for attr attrs
|
%type <str> trim_list in_expr substr_for attr attrs
|
||||||
@ -881,6 +881,7 @@ stmt: AddAttrStmt { output_statement($1, 0); }
|
|||||||
| ClusterStmt { output_statement($1, 0); }
|
| ClusterStmt { output_statement($1, 0); }
|
||||||
| DefineStmt { output_statement($1, 0); }
|
| DefineStmt { output_statement($1, 0); }
|
||||||
| DestroyStmt { output_statement($1, 0); }
|
| DestroyStmt { output_statement($1, 0); }
|
||||||
|
| TruncateStmt { output_statement($1, 0); }
|
||||||
| DropPLangStmt { output_statement($1, 0); }
|
| DropPLangStmt { output_statement($1, 0); }
|
||||||
| DropTrigStmt { output_statement($1, 0); }
|
| DropTrigStmt { output_statement($1, 0); }
|
||||||
| DropUserStmt { output_statement($1, 0); }
|
| DropUserStmt { output_statement($1, 0); }
|
||||||
@ -1948,7 +1949,17 @@ DestroyStmt: DROP TABLE relation_name_list
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
*
|
||||||
|
* QUERY:
|
||||||
|
* truncate table relname
|
||||||
|
*
|
||||||
|
*****************************************************************************/
|
||||||
|
TruncateStmt: TRUNCATE TABLE relation_name
|
||||||
|
{
|
||||||
|
$$ = cat2_str(make1_str("drop table"), $3);
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
@ -4283,9 +4294,11 @@ ColId: ident { $$ = $1; }
|
|||||||
| INSENSITIVE { $$ = make1_str("insensitive"); }
|
| INSENSITIVE { $$ = make1_str("insensitive"); }
|
||||||
| INSTEAD { $$ = make1_str("instead"); }
|
| INSTEAD { $$ = make1_str("instead"); }
|
||||||
| ISNULL { $$ = make1_str("isnull"); }
|
| ISNULL { $$ = make1_str("isnull"); }
|
||||||
|
| ISOLATION { $$ = make1_str("isolation"); }
|
||||||
| KEY { $$ = make1_str("key"); }
|
| KEY { $$ = make1_str("key"); }
|
||||||
| LANGUAGE { $$ = make1_str("language"); }
|
| LANGUAGE { $$ = make1_str("language"); }
|
||||||
| LANCOMPILER { $$ = make1_str("lancompiler"); }
|
| LANCOMPILER { $$ = make1_str("lancompiler"); }
|
||||||
|
| LEVEL { $$ = make1_str("level"); }
|
||||||
| LOCATION { $$ = make1_str("location"); }
|
| LOCATION { $$ = make1_str("location"); }
|
||||||
| MATCH { $$ = make1_str("match"); }
|
| MATCH { $$ = make1_str("match"); }
|
||||||
| MAXVALUE { $$ = make1_str("maxvalue"); }
|
| MAXVALUE { $$ = make1_str("maxvalue"); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user