mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49: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:
@@ -4452,10 +4452,15 @@ inline_set_returning_function(PlannerInfo *root, RangeTblEntry *rte)
|
||||
*/
|
||||
check_stack_depth();
|
||||
|
||||
/* Fail if the caller wanted ORDINALITY - we don't implement that here. */
|
||||
if (rte->funcordinality)
|
||||
return NULL;
|
||||
|
||||
/* Fail if FROM item isn't a simple FuncExpr */
|
||||
fexpr = (FuncExpr *) rte->funcexpr;
|
||||
if (fexpr == NULL || !IsA(fexpr, FuncExpr))
|
||||
return NULL;
|
||||
|
||||
func_oid = fexpr->funcid;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user