aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-05-17 04:50:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-05-17 04:50:07 +0000
commitfe0b8612d90b8f163cfdc5d42f71530f420af1e6 (patch)
tree9a16d04a2ca89f02a5be928b92285fc7d98f0e08
parentb8b1ba53ea456cadcaa5ef61a21c454427c8a28d (diff)
downloadpostgresql-fe0b8612d90b8f163cfdc5d42f71530f420af1e6.tar.gz
postgresql-fe0b8612d90b8f163cfdc5d42f71530f420af1e6.zip
Prior patch added 2 more characters to string allocated
for SERIAL column's constraint, but forgot to increase space palloc'd...
-rw-r--r--src/backend/parser/analyze.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c
index ab05411b3c5..7bc28cbaaee 100644
--- a/src/backend/parser/analyze.c
+++ b/src/backend/parser/analyze.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $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 $
*
*-------------------------------------------------------------------------
*/
@@ -545,7 +545,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
constraint = makeNode(Constraint);
constraint->contype = CONSTR_DEFAULT;
constraint->name = sname;
- cstring = palloc(9 + strlen(constraint->name) + 2 + 1);
+ cstring = palloc(10 + strlen(constraint->name) + 3 + 1);
strcpy(cstring, "nextval('\"");
strcat(cstring, constraint->name);
strcat(cstring, "\"')");