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

Commit e9d7bd2

Browse files
author
Michael Meskes
committed
Fixed two parser bugs.
1 parent 5e51297 commit e9d7bd2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/interfaces/ecpg/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,10 @@ Wed, 03 Oct 2007 10:48:39 +0200
22642264
Wed, 10 Oct 2007 08:31:44 +0200
22652265

22662266
- Synced parser and keyword list.
2267+
2268+
Tue, 06 Nov 2007 09:29:22 +0100
2269+
2270+
- Fixed two parser bugs.
22672271
- Set pgtypes library version to 3.0.
22682272
- Set compat library version to 3.0.
22692273
- Set ecpg library version to 6.0.

src/interfaces/ecpg/preproc/preproc.y

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.354 2007/10/10 06:33:17 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.355 2007/11/06 08:32:08 meskes Exp $ */
22

33
/* Copyright comment */
44
%{
@@ -2024,6 +2024,10 @@ ConstraintAttributeSpec: ConstraintDeferrabilitySpec { $$ = $1; }
20242024

20252025
$$ = cat2_str($1, $2);
20262026
}
2027+
| /* EMPTY */
2028+
{
2029+
$$ = EMPTY;
2030+
}
20272031
;
20282032

20292033
ConstraintDeferrabilitySpec: NOT DEFERRABLE
@@ -3413,7 +3417,7 @@ DeleteStmt: DELETE_P FROM relation_expr_opt_alias using_clause where_or_current
34133417
{ $$ = cat_str(5, make_str("delete from"), $3, $4, $5, $6); }
34143418
;
34153419

3416-
using_clause: USING from_list { cat2_str(make_str("using"), $2); }
3420+
using_clause: USING from_list { $$ = cat2_str(make_str("using"), $2); }
34173421
| /* EMPTY */ { $$ = EMPTY; }
34183422
;
34193423

@@ -3757,7 +3761,7 @@ table_ref: relation_expr
37573761
| func_table
37583762
{ $$ = $1; }
37593763
| func_table alias_clause
3760-
{ $$= cat2_str($1, $2); }
3764+
{ $$= cat2_str($1, $2); }
37613765
| func_table AS '(' TableFuncElementList ')'
37623766
{ $$=cat_str(4, $1, make_str("as ("), $4, make_str(")")); }
37633767
| func_table AS ColId '(' TableFuncElementList ')'

0 commit comments

Comments
 (0)