--- kexi/migration/mysql/mysqlmigrate.cpp 2006/12/16 23:37:10 614247 +++ kexi/migration/mysql/mysqlmigrate.cpp 2008/04/30 09:48:31 802696 @@ -249,7 +249,7 @@ MYSQL_ROW row; const KexiDB::QueryColumnInfo::Vector fieldsExpanded( dstTable->query()->fieldsExpanded() ); while ((row = mysql_fetch_row(res)) != NULL) { - const int numFields = QMIN((int)fieldsExpanded.count(), mysql_num_fields(res)); + const int numFields = QMIN((int)fieldsExpanded.count(), (int)mysql_num_fields(res)); QValueList vals; unsigned long *lengths = mysql_fetch_lengths(res); if (!lengths) { @@ -420,9 +420,6 @@ if(mysqlType.contains("blob", false) != 0) { // Doesn't matter how big it is, it's binary kexiType = KexiDB::Field::BLOB; - } else if(mysqlType.contains("text", false) != 0) { - // All the TEXT types are too big for Kexi text. - kexiType = KexiDB::Field::BLOB; } else if(fld->length < 200) { kexiType = KexiDB::Field::Text; } else {