Content-Length: 275484 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e79aed7cba7ee610a4f96d42fcff3bc22b732dbc

0C Wups, got the test for contain_vars_of_level-not-needed wrong in · postgrespro/postgres_cluster@e79aed7 · GitHub
Skip to content

Commit e79aed7

Browse files
committed
Wups, got the test for contain_vars_of_level-not-needed wrong in
transformInsertStmt: the target table is already in p_rtable at that point.
1 parent 1f0a6cd commit e79aed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/analyze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.342 2006/08/02 13:58:52 tgl Exp $
9+
* $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.343 2006/08/02 14:14:22 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -745,7 +745,7 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt,
745745
* construct to ensure that the values would be available while
746746
* evaluating the VALUES RTE. This is a shame. FIXME
747747
*/
748-
if (pstate->p_rtable != NIL &&
748+
if (list_length(pstate->p_rtable) != 1 &&
749749
contain_vars_of_level((Node *) exprsLists, 0))
750750
ereport(ERROR,
751751
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e79aed7cba7ee610a4f96d42fcff3bc22b732dbc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy