File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* 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 $
11
11
*
12
12
* INTERFACE ROUTINES
13
13
* heap_create() - Create an uncataloged heap relation
@@ -178,7 +178,7 @@ heap_create(char *name,
178
178
int len ;
179
179
bool nailme = false;
180
180
char * relname = name ;
181
- char tempname [40 ];
181
+ char tempname [NAMEDATALEN ];
182
182
int isTemp = 0 ;
183
183
int natts = tupDesc -> natts ;
184
184
@@ -243,6 +243,7 @@ heap_create(char *name,
243
243
if (name [0 ] == '\0' )
244
244
{
245
245
sprintf (tempname , "temp_%d" , relid );
246
+ Assert (strlen (tempname ) < NAMEDATALEN );
246
247
relname = tempname ;
247
248
isTemp = 1 ;
248
249
}
You can’t perform that action at this time.
0 commit comments