mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Allow OLD and NEW in multi-row VALUES within rules.
Now that we have LATERAL, it's fairly painless to allow this case, which was left as a TODO in the original multi-row VALUES implementation.
This commit is contained in:
@ -1313,6 +1313,7 @@ addRangeTableEntryForValues(ParseState *pstate,
|
||||
List *exprs,
|
||||
List *collations,
|
||||
Alias *alias,
|
||||
bool lateral,
|
||||
bool inFromCl)
|
||||
{
|
||||
RangeTblEntry *rte = makeNode(RangeTblEntry);
|
||||
@ -1355,7 +1356,7 @@ addRangeTableEntryForValues(ParseState *pstate,
|
||||
*
|
||||
* Subqueries are never checked for access rights.
|
||||
*/
|
||||
rte->lateral = false;
|
||||
rte->lateral = lateral;
|
||||
rte->inh = false; /* never true for values RTEs */
|
||||
rte->inFromCl = inFromCl;
|
||||
|
||||
|
Reference in New Issue
Block a user