Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fc590b6

Browse files
committed
From: Michael Meskes <Michael.Meskes@usa.net> + Tue Feb 2 07:40:52 CET 1999 + + - Brought preproc.y in sync again with gram.y. + - Set ecpg version to 2.4.9 +
1 parent a03b817 commit fc590b6

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,8 @@ Fri Jan 29 18:03:52 CET 1999
395395
- Fixed bug that caused function names to be translated to lower case.
396396
- Set ecpg version to 2.4.8
397397

398+
Tue Feb 2 07:40:52 CET 1999
399+
400+
- Brought preproc.y in sync again with gram.y.
401+
- Set ecpg version to 2.4.9
402+

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=4
6-
PATCHLEVEL=8
6+
PATCHLEVEL=9
77

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

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.8 1999/01/18 17:17:01 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.9 1999/02/04 04:58:04 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -212,6 +212,7 @@ static ScanKeyword ScanKeywords[] = {
212212
{"stdout", STDOUT},
213213
{"substring", SUBSTRING},
214214
{"table", TABLE},
215+
{"temp", TEMP},
215216
{"then", THEN},
216217
{"time", TIME},
217218
{"timestamp", TIMESTAMP},

src/interfaces/ecpg/preproc/preproc.y

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ output_statement(char * stmt, int mode)
554554
PARTIAL, POSITION, PRECISION, PRIMARY, PRIOR, PRIVILEGES, PROCEDURE, PUBLIC,
555555
READ, REFERENCES, RELATIVE, REVOKE, RIGHT, ROLLBACK,
556556
SCROLL, SECOND_P, SELECT, SET, SUBSTRING,
557-
TABLE, THEN, TIME, TIMESTAMP, TIMEZONE_HOUR, TIMEZONE_MINUTE,
557+
TABLE, TEMP, THEN, TIME, TIMESTAMP, TIMEZONE_HOUR, TIMEZONE_MINUTE,
558558
TO, TRAILING, TRANSACTION, TRIM, TRUE_P,
559559
UNION, UNIQUE, UPDATE, USER, USING,
560560
VALUES, VARCHAR, VARYING, VIEW,
@@ -637,7 +637,7 @@ output_statement(char * stmt, int mode)
637637
%type <str> opt_decimal Character character opt_varying opt_charset
638638
%type <str> opt_collate Datetime datetime opt_timezone opt_interval
639639
%type <str> numeric a_expr_or_null row_expr row_descriptor row_list
640-
%type <str> SelectStmt SubSelect result
640+
%type <str> SelectStmt SubSelect result OptTemp
641641
%type <str> opt_table opt_union opt_unique sort_clause sortby_list
642642
%type <str> sortby OptUseOp opt_inh_star relation_name_list name_list
643643
%type <str> group_clause having_clause from_clause c_list
@@ -1095,13 +1095,17 @@ copy_delimiter: USING DELIMITERS Sconst { $$ = cat2_str(make1_str("using delim
10951095
*
10961096
*****************************************************************************/
10971097

1098-
CreateStmt: CREATE TABLE relation_name '(' OptTableElementList ')'
1098+
CreateStmt: CREATE OptTemp TABLE relation_name '(' OptTableElementList ')'
10991099
OptInherit
11001100
{
1101-
$$ = cat4_str(make1_str("create table"), $3, make3_str(make1_str("("), $5, make1_str(")")), $7);
1101+
$$ = cat5_str(make1_str("create"), $2, make1_str("table"), make3_str(make1_str("("), $6, make1_str(")")), $8);
11021102
}
11031103
;
11041104

1105+
OptTemp: TEMP { $$ = make1_str("temp"); }
1106+
| /* EMPTY */ { $$ = make1_str(""); }
1107+
;
1108+
11051109
OptTableElementList: OptTableElementList ',' OptTableElement
11061110
{
11071111
$$ = cat3_str($1, make1_str(","), $3);
@@ -1461,9 +1465,9 @@ OptInherit: INHERITS '(' relation_name_list ')' { $$ = make3_str(make1_str("inh
14611465
| /*EMPTY*/ { $$ = make1_str(""); }
14621466
;
14631467

1464-
CreateAsStmt: CREATE TABLE relation_name OptCreateAs AS SubSelect
1468+
CreateAsStmt: CREATE OptTemp TABLE relation_name OptCreateAs AS SubSelect
14651469
{
1466-
$$ = cat5_str(make1_str("create table"), $3, $4, make1_str("as"), $6);
1470+
$$ = cat5_str(cat3_str(make1_str("create"), $2, make1_str("table")), $4, $5, make1_str("as"), $7);
14671471
}
14681472
;
14691473

@@ -2691,7 +2695,7 @@ SubSelect: SELECT opt_unique res_target_list2
26912695
}
26922696
;
26932697

2694-
result: INTO opt_table relation_name { $$= cat3_str(make1_str("into"), $2, $3); }
2698+
result: INTO OptTemp opt_table relation_name { $$= cat4_str(make1_str("into"), $2, $3, $4); }
26952699
| INTO into_list { $$ = make1_str(""); }
26962700
| /*EMPTY*/ { $$ = make1_str(""); }
26972701
;

0 commit comments

Comments
 (0)