|
6 | 6 | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - *$Id: analyze.c,v 1.175 2001/01/08 20:54:24 momjian Exp $ |
| 9 | + *$Id: analyze.c,v 1.176 2001/01/19 06:50:23 tgl Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -423,10 +423,9 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt) |
423 | 423 | foreach(tl,qry->targetList) |
424 | 424 | { |
425 | 425 | TargetEntry*tle= (TargetEntry*)lfirst(tl); |
426 | | -Resdom*resnode=tle->resdom; |
427 | 426 | Ident*id; |
428 | 427 |
|
429 | | -Assert(!resnode->resjunk); |
| 428 | +Assert(!tle->resdom->resjunk); |
430 | 429 | if (icolumns==NIL||attnos==NIL) |
431 | 430 | elog(ERROR,"INSERT has more expressions than target columns"); |
432 | 431 | id= (Ident*)lfirst(icolumns); |
|