From 32b1fb80391de4b74eba5dad84c83a0a1ad37c09 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 9 Jun 2006 20:13:08 +0000 Subject: [PATCH] support display of HANDLER statement results --- ChangeLog | 1 + libraries/import.lib.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2102ec74..51b7cca28 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2006-06-09 Marc Delisle * tbl_select.php: bug #1490569, search with LIKE on numeric fields + * libraries/import.lib.php: support display of HANDLER statement results 2006-06-08 Marc Delisle * libraries/header.inc.php: bug #1501891, undefined PMA_isSuperuser() when diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 65371bce4..bf5414f38 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -60,7 +60,7 @@ function PMA_detectCompression($filepath) /** * Runs query inside import buffer. This is needed to allow displaying - * of last SELECT or SHOW results and simmilar nice stuff. + * of last SELECT, SHOW or HANDLER results and similar nice stuff. * * @param string query to run * @param string query to display, this might be commented @@ -89,7 +89,7 @@ function PMA_importRunQuery($sql = '', $full = '') } else { $executed_queries++; if ($run_query && $finished && empty($sql) && !$error && ( - (!empty($import_run_buffer['sql']) && preg_match('/^[\s]*(SELECT|SHOW)/i', $import_run_buffer['sql'])) || + (!empty($import_run_buffer['sql']) && preg_match('/^[\s]*(SELECT|SHOW|HANDLER)/i', $import_run_buffer['sql'])) || ($executed_queries == 1) )) { $go_sql = TRUE;