Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a68f7f

Browse files
committed
Fix broken {xufailed} production that made HEAD fail on
select u&42 from table-with-a-u-column;Also fix missing SET_YYLLOC() in the {dolqfailed} production that I supposethis was based on. The latter is a pre-existing bug, but the only effectis to misplace the error cursor by one token, so probably not worthbackpatching.
1 parent334f4e1 commit6a68f7f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎src/backend/parser/scan.l

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
2626
* IDENTIFICATION
27-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.149 2009/03/04 13:02:32 petere Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.150 2009/04/14 22:18:47 tgl Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
@@ -553,6 +553,7 @@ other.
553553
startlit();
554554
}
555555
{dolqfailed}{
556+
SET_YYLLOC();
556557
/* throw back all but the initial "$" */
557558
yyless(1);
558559
/* and treat it as {other} */
@@ -646,10 +647,15 @@ other.
646647
<xd,xui><<EOF>>{yyerror("unterminated quoted identifier"); }
647648

648649
{xufailed}{
650+
char *ident;
651+
652+
SET_YYLLOC();
649653
/* throw back all but the initial u/U */
650654
yyless(1);
651-
/* and treat it as {other} */
652-
return yytext[0];
655+
/* and treat it as {identifier} */
656+
ident =downcase_truncate_identifier(yytext, yyleng,true);
657+
yylval.str = ident;
658+
return IDENT;
653659
}
654660

655661
{typecast}{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp