Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ec7eef

Browse files
committed
Cleanup for array fix patch.
1 parentefd3b39 commit8ec7eef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/access/common/tupdesc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.24 1997/09/10 23:30:45 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.25 1997/09/10 23:57:49 momjian Exp $
1111
*
1212
* NOTES
1313
* some of the executor utility code such as "ExecTypeFromTL" should be
@@ -481,15 +481,17 @@ BuildDescForRelation(List *schema, char *relname)
481481
arry=entry->typename->arrayBounds;
482482
attisset=entry->typename->setof;
483483

484-
strNcpy(typename,entry->typename->name,NAMEDATALEN-1);
485484
if (arry!=NIL)
486485
{
487486
/* array of XXX is _XXX */
488487
sprintf(typename,"_%.*s",NAMEDATALEN-2,entry->typename->name);
489488
attdim=length(arry);
490489
}
491490
else
491+
{
492+
strNcpy(typename,entry->typename->name,NAMEDATALEN-1);
492493
attdim=0;
494+
}
493495

494496
if (!TupleDescInitEntry(desc,attnum,attname,
495497
typename,attdim,attisset))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp