diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-02 14:14:22 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-02 14:14:22 +0000 |
commit | e79aed7cba7ee610a4f96d42fcff3bc22b732dbc (patch) | |
tree | 0179efec64803bb65e13a7256c45ad585464899c /src | |
parent | 1f0a6cd60caa3216d41b048c4c9d65049f069bac (diff) | |
download | postgresql-e79aed7cba7ee610a4f96d42fcff3bc22b732dbc.tar.gz postgresql-e79aed7cba7ee610a4f96d42fcff3bc22b732dbc.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/analyze.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index a9971604de9..4f00d98b9b6 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.342 2006/08/02 13:58:52 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.343 2006/08/02 14:14:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -745,7 +745,7 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt, * construct to ensure that the values would be available while * evaluating the VALUES RTE. This is a shame. FIXME */ - if (pstate->p_rtable != NIL && + if (list_length(pstate->p_rtable) != 1 && contain_vars_of_level((Node *) exprsLists, 0)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), |