From: Michael Meskes Date: Tue, 6 Nov 2007 08:32:57 +0000 (+0000) Subject: Fixed two parser bugs. X-Git-Tag: REL8_1_11~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=607359854e7239025e87ec2fd0b956240743f5c4;p=postgresql Fixed two parser bugs. --- diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 49fab81fa3..d170d03274 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.311.2.5 2007/03/27 03:25:43 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.311.2.6 2007/11/06 08:32:57 meskes Exp $ */ /* Copyright comment */ %{ @@ -1881,6 +1881,10 @@ ConstraintAttributeSpec: ConstraintDeferrabilitySpec { $$ = $1; } $$ = cat2_str($1, $2); } + | /* EMPTY */ + { + $$ = EMPTY; + } ; ConstraintDeferrabilitySpec: NOT DEFERRABLE @@ -3037,7 +3041,7 @@ DeleteStmt: DELETE_P FROM relation_expr using_clause where_clause { $$ = cat_str(4, make_str("delete from"), $3, $4, $5); } ; -using_clause: USING from_list { cat2_str(make_str("using"), $2); } +using_clause: USING from_list { $$ = cat2_str(make_str("using"), $2); } | /* EMPTY */ { $$ = EMPTY; } ;