"SHOW TABLE STATUS" requires MySQL 3.23.03+

This commit is contained in:
Loïc Chapeaux
2002-02-27 20:23:08 +00:00
parent 1ac354fb58
commit 94adb5612a

View File

@@ -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();