@@ -107,7 +107,7 @@ static void check_labels(const char *start_label,
107107 const char *end_label,
108108 int end_location);
109109static PLpgSQL_expr *read_cursor_args (PLpgSQL_var *cursor,
110- int until, const char *expected );
110+ int until);
111111static List *read_raise_options (void );
112112static void check_raise_parameters (PLpgSQL_stmt_raise *stmt);
113113
@@ -1414,8 +1414,7 @@ for_control : for_variable K_IN
14141414
14151415 /* collect cursor's parameters if any */
14161416 new ->argquery = read_cursor_args (cursor,
1417- K_LOOP,
1418- " LOOP" );
1417+ K_LOOP);
14191418
14201419 /* create loop's private RECORD variable */
14211420 new ->var = (PLpgSQL_variable *)
@@ -2129,7 +2128,7 @@ stmt_open : K_OPEN cursor_variable
21292128 else
21302129 {
21312130 /* predefined cursor query, so read args */
2132- new ->argquery = read_cursor_args ($2 , ' ;' , " ; " );
2131+ new ->argquery = read_cursor_args ($2 , ' ;' );
21332132 }
21342133
21352134 $$ = (PLpgSQL_stmt *)new ;
@@ -3773,7 +3772,7 @@ check_labels(const char *start_label, const char *end_label, int end_location)
37733772 * parens).
37743773 */
37753774static PLpgSQL_expr *
3776- read_cursor_args(PLpgSQL_var *cursor, int until, const char *expected )
3775+ read_cursor_args(PLpgSQL_var *cursor, int until)
37773776{
37783777 PLpgSQL_expr *expr;
37793778 PLpgSQL_row *row;
0 commit comments