bug #1689931 unnecessary innodb hint when browsing myisam tables

This commit is contained in:
Sebastian Mendel
2007-03-29 06:50:12 +00:00
parent 858a4d1b42
commit a190872f0a

View File

@@ -1725,7 +1725,8 @@ 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'])
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 ')) {