diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-05 05:00:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-05 05:00:14 +0000 |
commit | 5251e7b3d07da28b48ec5c7930c8b57b554fd27a (patch) | |
tree | 6b0f24e3c8722839d2fc549d052995d2d4e3b763 /src/include/nodes/parsenodes.h | |
parent | d556920a982c29810c2afaf64ca4840713a424c1 (diff) |
CREATE TABLE foo (x,y,z) AS SELECT ... can't apply target column names
to the target list in gram.y; it must wait till after expansion of the
target list in analyze.c. Per bug report 4-Nov:
lx=# CREATE TABLE abc (a char, b char, c char);
CREATE
lx=# CREATE TABLE xyz (x, y, z) AS SELECT * FROM abc;
ERROR: CREATE TABLE/AS SELECT has mismatched column count
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 1abd7ba365a..892177c920c 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.149 2001/10/28 06:26:07 momjian Exp $ + * $Id: parsenodes.h,v 1.150 2001/11/05 05:00:14 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -881,6 +881,7 @@ typedef struct SelectStmt * DISTINCT) */ char *into; /* name of table (for select into table) */ bool istemp; /* into is a temp table? */ + List *intoColNames; /* column names for into table */ List *targetList; /* the target list (of ResTarget) */ List *fromClause; /* the FROM clause */ Node *whereClause; /* WHERE qualification */ |