mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
Fix for arrays.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.23 1997/09/08 21:40:27 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.24 1997/09/10 23:30:45 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
|
||||||
@@ -483,7 +483,11 @@ BuildDescForRelation(List *schema, char *relname)
|
|||||||
|
|
||||||
strNcpy(typename, entry->typename->name, NAMEDATALEN - 1);
|
strNcpy(typename, entry->typename->name, NAMEDATALEN - 1);
|
||||||
if (arry != NIL)
|
if (arry != NIL)
|
||||||
|
{
|
||||||
|
/* array of XXX is _XXX */
|
||||||
|
sprintf(typename, "_%.*s", NAMEDATALEN-2,entry->typename->name);
|
||||||
attdim = length(arry);
|
attdim = length(arry);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
attdim = 0;
|
attdim = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user