Commit d32cd1bb authored by Tom Lane's avatar Tom Lane

Forgot to handle column length defaults in ALTER TABLE ADD COLUMN.

parent 7cc0d6ae
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: analyze.c,v 1.131 2000/01/20 02:24:50 tgl Exp $ * $Id: analyze.c,v 1.132 2000/01/22 01:22:48 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -178,6 +178,18 @@ transformStmt(ParseState *pstate, Node *parseTree) ...@@ -178,6 +178,18 @@ transformStmt(ParseState *pstate, Node *parseTree)
} }
break; break;
case T_AlterTableStmt:
{
AlterTableStmt *n = (AlterTableStmt *) parseTree;
result = makeNode(Query);
result->commandType = CMD_UTILITY;
if (n->subtype == 'A') /* ADD COLUMN */
transformColumnType(pstate, (ColumnDef *) n->def);
result->utilityStmt = (Node *) parseTree;
}
break;
/*------------------------ /*------------------------
* Optimizable statements * Optimizable statements
*------------------------ *------------------------
......
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