row count for InnoDB

This commit is contained in:
Marc Delisle
2002-10-05 19:48:27 +00:00
parent 2c51f09aee
commit c5e6fb8c58

View File

@@ -171,7 +171,14 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
$sum_size += $tblsize;
list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0);
}
$display_rows = ' - ';
//$display_rows = ' - ';
// get row count with another method
$local_query = 'SELECT COUNT(*) AS count FROM '
. PMA_backquote($db) . '.'
. PMA_backquote($table);
$table_info_result = PMA_mysql_query($local_query)
or PMA_mysqlDie('', $local_query, '', $err_url_0);
$display_rows = number_format(PMA_mysql_result($table_info_result, 0, 'count'), 0, $number_decimal_separator, $number_thousands_separator);
}
// Merge or BerkleyDB table: Only row count is accurate.