From cf67da28a15893e618ba8d5513c66c3e5f839fc7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 8 Nov 2009 11:33:28 +0000 Subject: [PATCH] bug #2887357 [core] Slow loading times with large databases (partial fix) --- ChangeLog | 1 + libraries/database_interface.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c8bcf8277..39faadde9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -53,6 +53,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #2890451 [setup] Inconsistent generated "designer_coords" - bug #2890443 [mysqli] "No index used in query" exception is reported - bug #2891250 [ob] Garbled data in navi frame (PHP 5.2.11 bug) +- bug #2887357 [core] Slow loading times with large databases (partial fix) 3.2.3.0 (2009-10-30) - patch #2856664 [export] Date, time, and datetime column types now export correctly to diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index e618e7c58..700af46d3 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -353,7 +353,7 @@ function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = fals // this is why we fall back to SHOW TABLE STATUS even for MySQL >= 50002 if (empty($tables)) { foreach ($databases as $each_database) { - if (true === $tbl_is_group) { + if ($table || (true === $tbl_is_group)) { $sql = 'SHOW TABLE STATUS FROM ' . PMA_backquote($each_database) .' LIKE \'' . PMA_escape_mysql_wildcards(addslashes($table)) . '%\'';