The attached patch fixes 4 instances of missing simi-colons in the
authorJan Wieck <JanWieck@Yahoo.com>
Wed, 1 May 2002 12:40:22 +0000 (12:40 +0000)
committerJan Wieck <JanWieck@Yahoo.com>
Wed, 1 May 2002 12:40:22 +0000 (12:40 +0000)
PL/PgSQL grammar, which were causing warnings when used with Bison
1.35.

Neil Conway <neilconway@rogers.com>

src/pl/plpgsql/src/gram.y

index 48a683d41a457521cb069b8451f3608e6c009f9b..98bf34345ede1b33145e63d2a2664cfb1807cd52 100644 (file)
@@ -641,6 +641,7 @@ decl_defval         : ';'
 
 decl_defkey            : K_ASSIGN
                                | K_DEFAULT
+                               ;
 
 proc_sect              :
                                        {
@@ -1024,6 +1025,7 @@ fori_lower                :
 
                                                $$.expr = plpgsql_read_expression(K_DOTDOT, "..");
                                        }
+                               ;
 
 stmt_fors              : opt_label K_FOR lno fors_target K_IN K_SELECT expr_until_loop loop_body
                                        {
@@ -1053,6 +1055,7 @@ stmt_fors         : opt_label K_FOR lno fors_target K_IN K_SELECT expr_until_loop loop_
 
                                                $$ = (PLpgSQL_stmt *)new;
                                        }
+                               ;
 
 stmt_dynfors : opt_label K_FOR lno fors_target K_IN K_EXECUTE expr_until_loop loop_body
                                        {
@@ -1082,6 +1085,7 @@ stmt_dynfors : opt_label K_FOR lno fors_target K_IN K_EXECUTE expr_until_loop lo
 
                                                $$ = (PLpgSQL_stmt *)new;
                                        }
+                               ;
 
 fors_target            : T_RECORD
                                        { $$ = yylval.rec; }