"SHOW TABLE STATUS" requires MySQL 3.23.03+
This commit is contained in:
@@ -224,6 +224,7 @@ if ($num_dbs > 0) {
|
||||
$dbs_array[$db][2] = 0; // index size column
|
||||
$dbs_array[$db][3] = 0; // full size column
|
||||
|
||||
if (PMA_MYSQL_INT_VERSION >= 32303) {
|
||||
$local_query = 'SHOW TABLE STATUS FROM ' . PMA_backquote($db);
|
||||
$result = @mysql_query($local_query);
|
||||
// needs the "@" below otherwise, warnings in case of special DB names
|
||||
@@ -238,6 +239,8 @@ if ($num_dbs > 0) {
|
||||
$total_array[3] += $dbs_array[$db][3];
|
||||
} // end if
|
||||
mysql_free_result($result);
|
||||
} // end if MySQL 3.23.03+
|
||||
|
||||
} // end for
|
||||
mysql_close();
|
||||
|
||||
|
Reference in New Issue
Block a user