|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.24 1997/09/10 23:30:45 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.25 1997/09/10 23:57:49 momjian Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | * some of the executor utility code such as "ExecTypeFromTL" should be
|
@@ -481,15 +481,17 @@ BuildDescForRelation(List *schema, char *relname)
|
481 | 481 | arry=entry->typename->arrayBounds;
|
482 | 482 | attisset=entry->typename->setof;
|
483 | 483 |
|
484 |
| -strNcpy(typename,entry->typename->name,NAMEDATALEN-1); |
485 | 484 | if (arry!=NIL)
|
486 | 485 | {
|
487 | 486 | /* array of XXX is _XXX */
|
488 | 487 | sprintf(typename,"_%.*s",NAMEDATALEN-2,entry->typename->name);
|
489 | 488 | attdim=length(arry);
|
490 | 489 | }
|
491 | 490 | else
|
| 491 | +{ |
| 492 | +strNcpy(typename,entry->typename->name,NAMEDATALEN-1); |
492 | 493 | attdim=0;
|
| 494 | +} |
493 | 495 |
|
494 | 496 | if (!TupleDescInitEntry(desc,attnum,attname,
|
495 | 497 | typename,attdim,attisset))
|
|