From dae81cbf4d7279384f4eabe9e673744a2148810f Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 31 Jul 2015 20:27:40 +0530 Subject: [PATCH] Fix retrieve default storage engine correctly Signed-off-by: Madhura Jayaratne --- .../structure/body_for_table_summary.phtml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/templates/structure/body_for_table_summary.phtml b/templates/structure/body_for_table_summary.phtml index 4392a70ea8..94a9648dcc 100644 --- a/templates/structure/body_for_table_summary.phtml +++ b/templates/structure/body_for_table_summary.phtml @@ -34,11 +34,18 @@ $cell_text = ($approx_rows) ?> 1)): ?> - fetchValue( - 'SHOW VARIABLES LIKE \'storage_engine\';', - 0, - 1 - ); ?> + fetchValue( + "SHOW VARIABLES LIKE 'storage_engine';", 0, 1 + ); + if (empty($default_engine)) { + // MySQL >= 5.5.3 + $default_engine = $GLOBALS['dbi']->fetchValue( + "SHOW VARIABLES LIKE 'default_storage_engine';", 0, 1 + ); + } + ?>