]> granicus.if.org Git - postgresql/commitdiff
Fixed two parser bugs.
authorMichael Meskes <meskes@postgresql.org>
Tue, 6 Nov 2007 08:32:57 +0000 (08:32 +0000)
committerMichael Meskes <meskes@postgresql.org>
Tue, 6 Nov 2007 08:32:57 +0000 (08:32 +0000)
src/interfaces/ecpg/preproc/preproc.y

index 49fab81fa3233beeed234659e41f50c2249bc068..d170d0327465b2aaa13e15f3bb02401f10d9128d 100644 (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 */
 %{
@@ -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; }
                ;