Index: schema.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/schema/schema.module,v
retrieving revision 1.43.2.5
diff -u -p -r1.43.2.5 schema.module
--- schema.module	27 Sep 2009 16:34:33 -0000	1.43.2.5
+++ schema.module	13 Oct 2009 14:13:22 -0000
@@ -335,8 +335,9 @@ function schema_compare_table($ref, $ins
     //
     // Sadly, we need a special-case hack for 'serial'.
     $serial = ($col['type'] == 'serial' ? TRUE : FALSE);
-    $dbtype = schema_engine_type($col, $ref['name'], $colname);
-    list($col['type'], $col['size']) = schema_schema_type($dbtype, $ref['name'], $colname);
+    $name = isset($ref['name']) ? $ref['name'] : '';
+    $dbtype = schema_engine_type($col, $name, $colname);
+    list($col['type'], $col['size']) = schema_schema_type($dbtype, $name, $colname);
     if ($serial) {
       $col['type'] = 'serial';
     }
