|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.75 1998/05/09 23:29:52 thomas Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.76 1998/05/29 13:39:30 thomas Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -315,8 +315,8 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
|
315 | 315 | te = makeNode(TargetEntry);
|
316 | 316 | te->resdom = makeResdom(defval[ndef].adnum,
|
317 | 317 | att[defval[ndef].adnum - 1]->atttypid,
|
318 |
| - att[defval[ndef].adnum - 1]->atttypmod, |
319 |
| - pstrdup(nameout(&(att[defval[ndef].adnum - 1]->attname))), |
| 318 | + att[defval[ndef].adnum - 1]->atttypmod, |
| 319 | + pstrdup(nameout(&(att[defval[ndef].adnum - 1]->attname))), |
320 | 320 | 0, 0, 0);
|
321 | 321 | te->fjoin = NULL;
|
322 | 322 | te->expr = (Node *) stringToNode(defval[ndef].adbin);
|
@@ -350,9 +350,10 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
|
350 | 350 | if (pstate->p_hasAggs)
|
351 | 351 | parseCheckAggregates(pstate, qry);
|
352 | 352 |
|
353 |
| - /* The INSERT INTO ... SELECT ... could have a UNION */ |
354 |
| - qry->unionall = stmt->unionall; /* in child, so unionClause may be |
355 |
| - * false */ |
| 353 | + /* The INSERT INTO ... SELECT ... could have a UNION |
| 354 | + * in child, so unionClause may be false |
| 355 | + */ |
| 356 | + qry->unionall = stmt->unionall; |
356 | 357 | qry->unionClause = transformUnionClause(stmt->unionClause, qry->targetList);
|
357 | 358 |
|
358 | 359 | return (Query *) qry;
|
@@ -813,8 +814,10 @@ transformSelectStmt(ParseState *pstate, SelectStmt *stmt)
|
813 | 814 | if (pstate->p_hasAggs)
|
814 | 815 | parseCheckAggregates(pstate, qry);
|
815 | 816 |
|
816 |
| - qry->unionall = stmt->unionall; /* in child, so unionClause may be |
817 |
| - * false */ |
| 817 | + /* The INSERT INTO ... SELECT ... could have a UNION |
| 818 | + * in child, so unionClause may be false |
| 819 | + */ |
| 820 | + qry->unionall = stmt->unionall; |
818 | 821 | qry->unionClause = transformUnionClause(stmt->unionClause, qry->targetList);
|
819 | 822 |
|
820 | 823 | return (Query *) qry;
|
|
0 commit comments