mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Fix for arrays.
This commit is contained in:
parent
b1f3f446af
commit
efd3b39029
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user