diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index c66f0662b8d290fd6d2e110c0ce1ef4dd16ff5aa..90be92ff0fbf51b37ebeab2b18062cece3208ea0 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.46 2002/10/19 02:09:45 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.47 2002/10/19 02:25:51 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1675,7 +1675,7 @@ AlterTableAddColumn(Oid myrelid,
 			tform = (Form_pg_type) GETSTRUCT(typeTuple);
 
 			if (HeapTupleGetOid(typeTuple) != childatt->atttypid ||
-					colDef->typename->typemod != childatt->atttypmod)
+					colDef->typename->typmod != childatt->atttypmod)
 				elog(ERROR, "ALTER TABLE: child table %u has different "
 						"type for column \"%s\"",
 						childrelid, colDef->colname);