Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b1ba5 commit fe0b861Copy full SHA for fe0b861
src/backend/parser/analyze.c
@@ -5,7 +5,7 @@
5
*
6
* Copyright (c) 1994, Regents of the University of California
7
8
- * $Id: analyze.c,v 1.104 1999/05/13 15:01:32 thomas Exp $
+ * $Id: analyze.c,v 1.105 1999/05/17 04:50:07 tgl Exp $
9
10
*-------------------------------------------------------------------------
11
*/
@@ -545,7 +545,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
545
constraint = makeNode(Constraint);
546
constraint->contype = CONSTR_DEFAULT;
547
constraint->name = sname;
548
- cstring = palloc(9 + strlen(constraint->name) + 2 + 1);
+ cstring = palloc(10 + strlen(constraint->name) + 3 + 1);
549
strcpy(cstring, "nextval('\"");
550
strcat(cstring, constraint->name);
551
strcat(cstring, "\"')");
0 commit comments