|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.46 2002/10/19 02:09:45 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.47 2002/10/19 02:25:51 momjian Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -1675,7 +1675,7 @@ AlterTableAddColumn(Oid myrelid, |
1675 | 1675 | tform= (Form_pg_type)GETSTRUCT(typeTuple); |
1676 | 1676 |
|
1677 | 1677 | if (HeapTupleGetOid(typeTuple)!=childatt->atttypid|| |
1678 | | -colDef->typename->typemod!=childatt->atttypmod) |
| 1678 | +colDef->typename->typmod!=childatt->atttypmod) |
1679 | 1679 | elog(ERROR,"ALTER TABLE: child table %u has different " |
1680 | 1680 | "type for column \"%s\"", |
1681 | 1681 | childrelid,colDef->colname); |
|