bug #1689931 unnecessary innodb hint when browsing myisam tables
This commit is contained in:
@@ -1725,7 +1725,8 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
|
|||||||
*/
|
*/
|
||||||
$is_innodb = (isset($showtable['Type']) && $showtable['Type'] == 'InnoDB');
|
$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'])
|
&& ! isset($analyzed_sql[0]['table_ref'][1]['table_name'])
|
||||||
&& (empty($analyzed_sql[0]['where_clause'])
|
&& (empty($analyzed_sql[0]['where_clause'])
|
||||||
|| $analyzed_sql[0]['where_clause'] == '1 ')) {
|
|| $analyzed_sql[0]['where_clause'] == '1 ')) {
|
||||||
|
Reference in New Issue
Block a user