]> git.joonet.de Git - adminer.git/commitdiff
Explain partitions in SQL query (bug #3600150)
authorJakub Vrana <jakub@vrana.cz>
Fri, 5 Apr 2013 01:40:49 +0000 (18:40 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 5 Apr 2013 01:40:49 +0000 (18:40 -0700)
adminer/drivers/mysql.inc.php
changes.txt

index 75a957240086062723aff6eff20cfff47f8735b1..c39e866896220bab49755a8a25b074c844402230 100644 (file)
@@ -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
index 6a0f87819c01093116d5e8d820605afe4fe6218f..669437cca39585dfbed6a61b4e17c011c3a23a06 100644 (file)
@@ -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