Commit 9cf701f3 authored by Peter Eisentraut's avatar Peter Eisentraut

Start adding some more documentation about the number types. Make

bigserial and alias for serial8 for consistency with bigint/int8.
parent e8cb9359
This diff is collapsed.
...@@ -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
* *
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.196 2001/08/21 16:36:03 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.197 2001/08/24 20:03:45 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -732,7 +732,8 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt) ...@@ -732,7 +732,8 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
is_serial = true; is_serial = true;
column->typename->name = pstrdup("int4"); column->typename->name = pstrdup("int4");
} }
else if (strcmp(column->typename->name, "serial8") == 0) else if (strcmp(column->typename->name, "bigserial") == 0 ||
strcmp(column->typename->name, "serial8") == 0)
{ {
is_serial = true; is_serial = true;
column->typename->name = pstrdup("int8"); column->typename->name = pstrdup("int8");
......
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