'syntax error' message, rather than something that might draw one's
attention to a missing or wrong-type variable declaration. Per recent
gripe.
check_assignable(yylval.scalar);
$$ = yylval.scalar->dno;
}
+ | T_ROW
+ {
+ yyerror("expected an integer variable");
+ }
+ | T_RECORD
+ {
+ yyerror("expected an integer variable");
+ }
+ | T_WORD
+ {
+ yyerror("expected an integer variable");
+ }
;
}
$$ = (PLpgSQL_var *) yylval.scalar;
}
+ | T_ROW
+ {
+ yyerror("expected a cursor or refcursor variable");
+ }
+ | T_RECORD
+ {
+ yyerror("expected a cursor or refcursor variable");
+ }
+ | T_WORD
+ {
+ yyerror("expected a cursor or refcursor variable");
+ }
;
exception_sect :