const char *end_label,
int end_location);
static PLpgSQL_expr *read_cursor_args(PLpgSQL_var *cursor,
- int until, const char *expected);
+ int until);
static List *read_raise_options(void);
static void check_raise_parameters(PLpgSQL_stmt_raise *stmt);
/* collect cursor's parameters if any */
new->argquery = read_cursor_args(cursor,
- K_LOOP,
- "LOOP");
+ K_LOOP);
/* create loop's private RECORD variable */
new->var = (PLpgSQL_variable *)
else
{
/* predefined cursor query, so read args */
- new->argquery = read_cursor_args($2, ';', ";");
+ new->argquery = read_cursor_args($2, ';');
}
$$ = (PLpgSQL_stmt *)new;
* parens).
*/
static PLpgSQL_expr *
-read_cursor_args(PLpgSQL_var *cursor, int until, const char *expected)
+read_cursor_args(PLpgSQL_var *cursor, int until)
{
PLpgSQL_expr *expr;
PLpgSQL_row *row;