Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe0b861

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 parentb8b1ba5 commitfe0b861

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)

[8]ページ先頭

©2009-2025 Movatter.jp