OSDN Git Service

Fix recent breakage of decl_cursor_arglist syntax, per Michael Paesold.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Sep 2005 13:46:47 +0000 (13:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Sep 2005 13:46:47 +0000 (13:46 +0000)
src/pl/plpgsql/src/gram.y

index e210d9e..494b130 100644 (file)
@@ -4,7 +4,7 @@
  *                                               procedural language
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.80 2005/07/02 17:01:59 momjian Exp $
+ *       $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.81 2005/09/14 13:46:47 tgl Exp $
  *
  *       This software is copyrighted by Jan Wieck - Hamburg.
  *
@@ -458,13 +458,13 @@ decl_cursor_args :
                                        }
                                ;
 
-decl_cursor_arglist : decl_cursor_arglist decl_cursor_arg
+decl_cursor_arglist : decl_cursor_arg
                                        {
-                                               $$ = lappend($1, $2);
+                                               $$ = list_make1($1);
                                        }
-                               | decl_cursor_arg
+                               | decl_cursor_arglist ',' decl_cursor_arg
                                        {
-                                               $$ = list_make1($1);
+                                               $$ = lappend($1, $3);
                                        }
                                ;