1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00

Fixed two parser bugs.

This commit is contained in:
Michael Meskes 2007-11-06 08:32:57 +00:00
parent 56ac701b3b
commit 607359854e

View File

@ -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 */ /* Copyright comment */
%{ %{
@ -1881,6 +1881,10 @@ ConstraintAttributeSpec: ConstraintDeferrabilitySpec { $$ = $1; }
$$ = cat2_str($1, $2); $$ = cat2_str($1, $2);
} }
| /* EMPTY */
{
$$ = EMPTY;
}
; ;
ConstraintDeferrabilitySpec: NOT DEFERRABLE 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); } { $$ = 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; } | /* EMPTY */ { $$ = EMPTY; }
; ;