@@ -107,7 +107,7 @@ static void check_labels(const char *start_label,
107
107
const char *end_label,
108
108
int end_location);
109
109
static PLpgSQL_expr *read_cursor_args (PLpgSQL_var *cursor,
110
- int until, const char *expected );
110
+ int until);
111
111
static List *read_raise_options (void );
112
112
static void check_raise_parameters (PLpgSQL_stmt_raise *stmt);
113
113
@@ -1414,8 +1414,7 @@ for_control : for_variable K_IN
1414
1414
1415
1415
/* collect cursor's parameters if any */
1416
1416
new ->argquery = read_cursor_args (cursor,
1417
- K_LOOP,
1418
- " LOOP" );
1417
+ K_LOOP);
1419
1418
1420
1419
/* create loop's private RECORD variable */
1421
1420
new ->var = (PLpgSQL_variable *)
@@ -2129,7 +2128,7 @@ stmt_open : K_OPEN cursor_variable
2129
2128
else
2130
2129
{
2131
2130
/* predefined cursor query, so read args */
2132
- new ->argquery = read_cursor_args ($2 , ' ;' , " ; " );
2131
+ new ->argquery = read_cursor_args ($2 , ' ;' );
2133
2132
}
2134
2133
2135
2134
$$ = (PLpgSQL_stmt *)new ;
@@ -3773,7 +3772,7 @@ check_labels(const char *start_label, const char *end_label, int end_location)
3773
3772
* parens).
3774
3773
*/
3775
3774
static PLpgSQL_expr *
3776
- read_cursor_args(PLpgSQL_var *cursor, int until, const char *expected )
3775
+ read_cursor_args(PLpgSQL_var *cursor, int until)
3777
3776
{
3778
3777
PLpgSQL_expr *expr;
3779
3778
PLpgSQL_row *row;
0 commit comments