mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF)
Author: Andrew Gierth, David Fetter Reviewers: Dean Rasheed, Jeevan Chalke, Stephen Frost
This commit is contained in:
@ -133,7 +133,7 @@ base_yylex(YYSTYPE *lvalp, YYLTYPE *llocp, core_yyscan_t yyscanner)
|
||||
case WITH:
|
||||
|
||||
/*
|
||||
* WITH TIME must be reduced to one token
|
||||
* WITH TIME and WITH ORDINALITY must each be reduced to one token
|
||||
*/
|
||||
cur_yylval = lvalp->core_yystype;
|
||||
cur_yylloc = *llocp;
|
||||
@ -143,6 +143,9 @@ base_yylex(YYSTYPE *lvalp, YYLTYPE *llocp, core_yyscan_t yyscanner)
|
||||
case TIME:
|
||||
cur_token = WITH_TIME;
|
||||
break;
|
||||
case ORDINALITY:
|
||||
cur_token = WITH_ORDINALITY;
|
||||
break;
|
||||
default:
|
||||
/* save the lookahead token for next time */
|
||||
yyextra->lookahead_token = next_token;
|
||||
|
Reference in New Issue
Block a user