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

Commit7193719

Browse files
committed
Fix temp name length.
1 parentaabdd30 commit7193719

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/catalog/heap.c

Lines changed: 3 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/catalog/heap.c,v 1.52 1998/07/12 23:41:18 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.53 1998/07/20 11:28:12 momjian Exp $
1111
*
1212
* INTERFACE ROUTINES
1313
*heap_create()- Create an uncataloged heap relation
@@ -178,7 +178,7 @@ heap_create(char *name,
178178
intlen;
179179
boolnailme= false;
180180
char*relname=name;
181-
chartempname[40];
181+
chartempname[NAMEDATALEN];
182182
intisTemp=0;
183183
intnatts=tupDesc->natts;
184184

@@ -243,6 +243,7 @@ heap_create(char *name,
243243
if (name[0]=='\0')
244244
{
245245
sprintf(tempname,"temp_%d",relid);
246+
Assert(strlen(tempname)<NAMEDATALEN);
246247
relname=tempname;
247248
isTemp=1;
248249
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp