|
9 | 9 | * Portions Copyright (c) 1994, Regents of the University of California
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.73 2003/05/13 18:39:50 tgl Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.74 2003/05/26 17:51:38 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -286,7 +286,7 @@ printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
|
286 | 286 | {
|
287 | 287 | DR_printtup *myState = (DR_printtup *) self;
|
288 | 288 | StringInfoData buf;
|
289 |
| - int natts = tuple->t_data->t_natts; |
| 289 | + int natts = typeinfo->natts; |
290 | 290 | int i;
|
291 | 291 |
|
292 | 292 | /* Set or update my derived attribute info, if needed */
|
@@ -370,7 +370,7 @@ printtup_20(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
|
370 | 370 | {
|
371 | 371 | DR_printtup *myState = (DR_printtup *) self;
|
372 | 372 | StringInfoData buf;
|
373 |
| - int natts = tuple->t_data->t_natts; |
| 373 | + int natts = typeinfo->natts; |
374 | 374 | int i,
|
375 | 375 | j,
|
376 | 376 | k;
|
@@ -517,7 +517,7 @@ debugStartup(DestReceiver *self, int operation, TupleDesc typeinfo)
|
517 | 517 | void
|
518 | 518 | debugtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
|
519 | 519 | {
|
520 |
| - int natts = tuple->t_data->t_natts; |
| 520 | + int natts = typeinfo->natts; |
521 | 521 | int i;
|
522 | 522 | Datum origattr,
|
523 | 523 | attr;
|
@@ -573,7 +573,7 @@ printtup_internal_20(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
|
573 | 573 | {
|
574 | 574 | DR_printtup *myState = (DR_printtup *) self;
|
575 | 575 | StringInfoData buf;
|
576 |
| - int natts = tuple->t_data->t_natts; |
| 576 | + int natts = typeinfo->natts; |
577 | 577 | int i,
|
578 | 578 | j,
|
579 | 579 | k;
|
|
0 commit comments