Commit efd3b390 authored by Bruce Momjian's avatar Bruce Momjian

Fix for arrays.

parent b1f3f446
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment