Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 80caa74

Browse files
committed
Fix failure to create sequences for more than one SERIAL column in a
table.
1 parent 8505fc8 commit 80caa74

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
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: analyze.c,v 1.177 2001/01/24 19:43:00 momjian Exp $
9+
* $Id: analyze.c,v 1.178 2001/01/27 07:23:48 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -749,7 +749,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
749749
elog(NOTICE, "CREATE TABLE will create implicit sequence '%s' for SERIAL column '%s.%s'",
750750
sequence->seqname, stmt->relname, column->colname);
751751

752-
blist = makeList1(sequence);
752+
blist = lappend(blist, sequence);
753753
}
754754

755755
/* Process column constraints, if any... */

0 commit comments

Comments
 (0)