From: Michael Meskes Date: Tue, 6 Nov 2007 08:32:57 +0000 (+0000) Subject: Fixed two parser bugs. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=89eee257cf7dd3effb7ec5a7ac035d09af680a9a;p=users%2Fbernd%2Fpostgres.git Fixed two parser bugs. --- diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index bd5df492fc..29c1994cbc 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -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; } ;