Don't display 0 for InnoDB tables as records count - fixes #735441.

This commit is contained in:
Michal Čihař
2003-05-10 16:14:34 +00:00
parent 4d1f628a8b
commit 95a4750719
2 changed files with 5 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ $Source$
* lang/latvian: Update thanks to Sandis Jerics (saaa2002). * lang/latvian: Update thanks to Sandis Jerics (saaa2002).
* lang/chinese: Update thanks to Wang (fundawang). * lang/chinese: Update thanks to Wang (fundawang).
* lang/sync_lang.sh: Fix for POSIX sh. * lang/sync_lang.sh: Fix for POSIX sh.
* db_details_structure.php3: Don't display 0 for InnoDB tables as records
count - fixes #735441.
* libraries/display_tbl.lib.php3: Fix not displaying content of TEXT
fields (was treated like BLOB).
2003-05-09 Marc Delisle <lem9@users.sourceforge.net> 2003-05-09 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php3: bug 731367: hexifying all * libraries/display_tbl.lib.php3: bug 731367: hexifying all

View File

@@ -249,7 +249,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
$row_count = PMA_mysql_result($table_info_result, 0, 'count'); $row_count = PMA_mysql_result($table_info_result, 0, 'count');
$sum_entries += $row_count; $sum_entries += $row_count;
} else { } else {
$row_count = 0; $row_count = $sts_data['Rows'];
$sum_entries += $sts_data['Rows']; $sum_entries += $sts_data['Rows'];
} }
$display_rows = number_format($row_count, 0, $number_decimal_separator, $number_thousands_separator); $display_rows = number_format($row_count, 0, $number_decimal_separator, $number_thousands_separator);