OSDN Git Service

Fix compile failure caused by new patch.
authorBruce Momjian <bruce@momjian.us>
Sat, 19 Oct 2002 02:25:51 +0000 (02:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 19 Oct 2002 02:25:51 +0000 (02:25 +0000)
src/backend/commands/tablecmds.c

index c66f066..90be92f 100644 (file)
@@ -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);