Cleanup for array fix patch.
This commit is contained in:
parent
efd3b39029
commit
8ec7eef93d
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.24 1997/09/10 23:30:45 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.25 1997/09/10 23:57:49 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* some of the executor utility code such as "ExecTypeFromTL" should be
|
* some of the executor utility code such as "ExecTypeFromTL" should be
|
||||||
|
@ -481,7 +481,6 @@ BuildDescForRelation(List *schema, char *relname)
|
||||||
arry = entry->typename->arrayBounds;
|
arry = entry->typename->arrayBounds;
|
||||||
attisset = entry->typename->setof;
|
attisset = entry->typename->setof;
|
||||||
|
|
||||||
strNcpy(typename, entry->typename->name, NAMEDATALEN - 1);
|
|
||||||
if (arry != NIL)
|
if (arry != NIL)
|
||||||
{
|
{
|
||||||
/* array of XXX is _XXX */
|
/* array of XXX is _XXX */
|
||||||
|
@ -489,7 +488,10 @@ BuildDescForRelation(List *schema, char *relname)
|
||||||
attdim = length(arry);
|
attdim = length(arry);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
strNcpy(typename, entry->typename->name, NAMEDATALEN - 1);
|
||||||
attdim = 0;
|
attdim = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!TupleDescInitEntry(desc, attnum, attname,
|
if (!TupleDescInitEntry(desc, attnum, attname,
|
||||||
typename, attdim, attisset))
|
typename, attdim, attisset))
|
||||||
|
|
Loading…
Reference in New Issue