提交 8ec7eef9 编写于 作者: B Bruce Momjian

Cleanup for array fix patch.

上级 efd3b390
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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) ...@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册