|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.76 2002/12/18 00:14:24 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.77 2003/01/12 22:01:38 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -583,9 +583,9 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
|
583 | 583 | ExecInitScanTupleSlot(estate,&indexstate->ss);
|
584 | 584 |
|
585 | 585 | /*
|
586 |
| - * initialize projection info.result type comes from scan desc |
587 |
| - * below.. |
| 586 | + * Initialize result tuple type and projection info. |
588 | 587 | */
|
| 588 | +ExecAssignResultTypeFromTL(&indexstate->ss.ps); |
589 | 589 | ExecAssignProjectionInfo(&indexstate->ss.ps);
|
590 | 590 |
|
591 | 591 | /*
|
@@ -893,7 +893,6 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
|
893 | 893 | * get the scan type from the relation descriptor.
|
894 | 894 | */
|
895 | 895 | ExecAssignScanType(&indexstate->ss,RelationGetDescr(currentRelation), false);
|
896 |
| -ExecAssignResultTypeFromTL(&indexstate->ss.ps); |
897 | 896 |
|
898 | 897 | /*
|
899 | 898 | * open the index relations and initialize relation and scan
|
|