|
5 | 5 | * |
6 | 6 | * Copyright (c) 1994, Regents of the University of California |
7 | 7 | * |
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 $ |
9 | 9 | * |
10 | 10 | *------------------------------------------------------------------------- |
11 | 11 | */ |
@@ -545,7 +545,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt) |
545 | 545 | constraint=makeNode(Constraint); |
546 | 546 | constraint->contype=CONSTR_DEFAULT; |
547 | 547 | constraint->name=sname; |
548 | | -cstring=palloc(9+strlen(constraint->name)+2+1); |
| 548 | +cstring=palloc(10+strlen(constraint->name)+3+1); |
549 | 549 | strcpy(cstring,"nextval('\""); |
550 | 550 | strcat(cstring,constraint->name); |
551 | 551 | strcat(cstring,"\"')"); |
|