bug [structure] "In use" table incorrectly reported as "view"

This commit is contained in:
Marc Delisle
2009-10-05 20:00:30 +00:00
parent abb074f02e
commit 6492668218
2 changed files with 9 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #2537766 [import] Comments are stripped when editing store procedures
- bug #2852370 [operations] Renaming database deletes triggers
- bug #2872247 [interface] Failed opening required 'mysql_charsets.lib.php', thanks to CyberLeo Kitsana - cyberleo
- bug [structure] "In use" table incorrectly reported as "view"
3.2.2.0 (2009-09-13)
- bug #2825293 [structure] Default value for a BIT column

View File

@@ -337,14 +337,18 @@ foreach ($tables as $keyname => $each_table) {
$unit = '';
}
break;
// for a view, the ENGINE is null
// for a view, the ENGINE is sometimes reported as null,
// or on some servers it's reported as "SYSTEM VIEW"
case null :
case 'SYSTEM VIEW' :
// countRecords() takes care of $cfg['MaxExactCountViews']
$each_table['TABLE_ROWS'] = PMA_Table::countRecords($db,
// if table is broken, Engine is reported as null, so one more test
if ($each_table['TABLE_TYPE'] == 'VIEW') {
// countRecords() takes care of $cfg['MaxExactCountViews']
$each_table['TABLE_ROWS'] = PMA_Table::countRecords($db,
$each_table['TABLE_NAME'], $return = true, $force_exact = true,
$is_view = true);
$table_is_view = true;
$table_is_view = true;
}
break;
default :
// Unknown table type.