From a190872f0a612ef58eaecb3052f5063d213a9775 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 29 Mar 2007 06:50:12 +0000 Subject: [PATCH] bug #1689931 unnecessary innodb hint when browsing myisam tables --- libraries/display_tbl.lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 75c6de21b..c5203aff2 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -1725,8 +1725,9 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) */ $is_innodb = (isset($showtable['Type']) && $showtable['Type'] == 'InnoDB'); - if (!isset($analyzed_sql[0]['queryflags']['union']) - && !isset($analyzed_sql[0]['table_ref'][1]['table_name']) + if ($is_innodb + && ! isset($analyzed_sql[0]['queryflags']['union']) + && ! isset($analyzed_sql[0]['table_ref'][1]['table_name']) && (empty($analyzed_sql[0]['where_clause']) || $analyzed_sql[0]['where_clause'] == '1 ')) { // "j u s t b r o w s i n g"