File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: analyze.c,v 1.131 2000/01/20 02:24:50 tgl Exp $
8
+ * $Id: analyze.c,v 1.132 2000/01/22 01:22:48 tgl Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
@@ -178,6 +178,18 @@ transformStmt(ParseState *pstate, Node *parseTree)
178
178
}
179
179
break ;
180
180
181
+ case T_AlterTableStmt :
182
+ {
183
+ AlterTableStmt * n = (AlterTableStmt * ) parseTree ;
184
+
185
+ result = makeNode (Query );
186
+ result -> commandType = CMD_UTILITY ;
187
+ if (n -> subtype == 'A' ) /* ADD COLUMN */
188
+ transformColumnType (pstate , (ColumnDef * ) n -> def );
189
+ result -> utilityStmt = (Node * ) parseTree ;
190
+ }
191
+ break ;
192
+
181
193
/*------------------------
182
194
* Optimizable statements
183
195
*------------------------
You can’t perform that action at this time.
0 commit comments