Skip to content

Commit fe0b861

Browse files
committed
Prior patch added 2 more characters to string allocated
for SERIAL column's constraint, but forgot to increase space palloc'd...
1 parent b8b1ba5 commit fe0b861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/analyze.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: analyze.c,v 1.104 1999/05/13 15:01:32 thomas Exp $
8+
* $Id: analyze.c,v 1.105 1999/05/17 04:50:07 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -545,7 +545,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
545545
constraint = makeNode(Constraint);
546546
constraint->contype = CONSTR_DEFAULT;
547547
constraint->name = sname;
548-
cstring = palloc(9 + strlen(constraint->name) + 2 + 1);
548+
cstring = palloc(10 + strlen(constraint->name) + 3 + 1);
549549
strcpy(cstring, "nextval('\"");
550550
strcat(cstring, constraint->name);
551551
strcat(cstring, "\"')");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy