|
6 | 6 | * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - *$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.342 2006/08/0213:58:52 tgl Exp $ |
| 9 | + *$PostgreSQL: pgsql/src/backend/parser/analyze.c,v 1.343 2006/08/0214:14:22 tgl Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -745,7 +745,7 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt, |
745 | 745 | * construct to ensure that the values would be available while |
746 | 746 | * evaluating the VALUES RTE. This is a shame. FIXME |
747 | 747 | */ |
748 | | -if (pstate->p_rtable!=NIL&& |
| 748 | +if (list_length(pstate->p_rtable)!=1&& |
749 | 749 | contain_vars_of_level((Node*)exprsLists,0)) |
750 | 750 | ereport(ERROR, |
751 | 751 | (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), |
|