mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +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:
@@ -509,6 +509,7 @@ _copyFunctionScan(const FunctionScan *from)
|
||||
COPY_NODE_FIELD(funccoltypes);
|
||||
COPY_NODE_FIELD(funccoltypmods);
|
||||
COPY_NODE_FIELD(funccolcollations);
|
||||
COPY_SCALAR_FIELD(funcordinality);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
@@ -1983,6 +1984,7 @@ _copyRangeTblEntry(const RangeTblEntry *from)
|
||||
COPY_NODE_FIELD(funccoltypes);
|
||||
COPY_NODE_FIELD(funccoltypmods);
|
||||
COPY_NODE_FIELD(funccolcollations);
|
||||
COPY_SCALAR_FIELD(funcordinality);
|
||||
COPY_NODE_FIELD(values_lists);
|
||||
COPY_NODE_FIELD(values_collations);
|
||||
COPY_STRING_FIELD(ctename);
|
||||
@@ -2296,6 +2298,7 @@ _copyRangeFunction(const RangeFunction *from)
|
||||
{
|
||||
RangeFunction *newnode = makeNode(RangeFunction);
|
||||
|
||||
COPY_SCALAR_FIELD(ordinality);
|
||||
COPY_SCALAR_FIELD(lateral);
|
||||
COPY_NODE_FIELD(funccallnode);
|
||||
COPY_NODE_FIELD(alias);
|
||||
|
||||
Reference in New Issue
Block a user