From 2c626c7fc78aa7e27e8ff82d60f440c956d92fb6 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 4 Apr 2013 18:40:49 -0700 Subject: [PATCH] Explain partitions in SQL query (bug #3600150) --- adminer/drivers/mysql.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 75a95724..c39e8668 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -846,7 +846,7 @@ if (!defined("DRIVER")) { * @return Min_Result */ function explain($connection, $query) { - return $connection->query("EXPLAIN $query"); + return $connection->query("EXPLAIN " . ($connection->server_info ? "PARTITIONS " : "") . $query); } /** Get approximate number of rows diff --git a/changes.txt b/changes.txt index 6a0f8781..669437cc 100644 --- a/changes.txt +++ b/changes.txt @@ -3,6 +3,7 @@ Display pagination on a fixed position Display SQL edit form on Ctrl+click on the select query Recover original view, trigger, routine if creating fails Clear column name after resetting search (bug #3601200) +Explain partitions in SQL query (bug #3600150) Allow loading more data with inline edit (bug #3605531) Stay on the same page after deleting rows (bug #3605845) Handle max_input_vars