Commit 80caa741 authored by Tom Lane's avatar Tom Lane

Fix failure to create sequences for more than one SERIAL column in a

table.
parent 8505fc8f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: analyze.c,v 1.177 2001/01/24 19:43:00 momjian Exp $ * $Id: analyze.c,v 1.178 2001/01/27 07:23:48 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -749,7 +749,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt) ...@@ -749,7 +749,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
elog(NOTICE, "CREATE TABLE will create implicit sequence '%s' for SERIAL column '%s.%s'", elog(NOTICE, "CREATE TABLE will create implicit sequence '%s' for SERIAL column '%s.%s'",
sequence->seqname, stmt->relname, column->colname); sequence->seqname, stmt->relname, column->colname);
blist = makeList1(sequence); blist = lappend(blist, sequence);
} }
/* Process column constraints, if any... */ /* Process column constraints, if any... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment