select u&42 from table-with-a-u-column;
Also fix missing SET_YYLLOC() in the {dolqfailed} production that I suppose
this was based on. The latter is a pre-existing bug, but the only effect
is to misplace the error cursor by one token, so probably not worth
backpatching.
startlit();
}
{dolqfailed} {
+ SET_YYLLOC();
/* throw back all but the initial "$" */
yyless(1);
/* and treat it as {other} */
<xd,xui><<EOF>> { yyerror("unterminated quoted identifier"); }
{xufailed} {
+ char *ident;
+
+ SET_YYLLOC();
/* throw back all but the initial u/U */
yyless(1);
- /* and treat it as {other} */
- return yytext[0];
+ /* and treat it as {identifier} */
+ ident = downcase_truncate_identifier(yytext, yyleng, true);
+ yylval.str = ident;
+ return IDENT;
}
{typecast} {