From c6198d6564ae76df320bda3952ab1c65f350cef1 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 11 Oct 2005 14:00:41 +0000 Subject: [PATCH] bug #1317655 information_schema browsing --- ChangeLog | 4 +++- tbl_properties_table_info.php | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4bc521d47..f1b4d8c9e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ ----------------------- +---------------------- phpMyAdmin - Changelog ---------------------- @@ -17,6 +17,8 @@ $Source$ XHTML 1.0 trans. compliance and more semantic XHTML output * tbl_printview.php, tbl_properties_structure.php: no table statistics for information_schema + * tbl_properties_table_info.php: + bug #1317655 information_schema browsing 2005-10-09 Marc Delisle * tbl_properties_links.php: invalid js confirmation and operation feedback diff --git a/tbl_properties_table_info.php b/tbl_properties_table_info.php index e57f6113e..9585ee23e 100644 --- a/tbl_properties_table_info.php +++ b/tbl_properties_table_info.php @@ -54,6 +54,11 @@ if ($table_info_result && PMA_DBI_num_rows($table_info_result) > 0) { } } $tbl_collation = empty($showtable['Collation']) ? '' : $showtable['Collation']; + + if ( NULL === $showtable['Rows'] ) { + $showtable['Rows'] = PMA_countRecords( $GLOBALS['db'], + $showtable['Name'], $return = true, $force_exact = true ); + } $table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0); $auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');