]> git.joonet.de Git - adminer.git/commitdiff
MySQL 8: Fix EXPLAIN in SQL command
authorJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 11:26:51 +0000 (12:26 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 11:26:51 +0000 (12:26 +0100)
adminer/drivers/mysql.inc.php
changes.txt

index 1d7922114bcabb76291c977ab73a8fe1abe624f6..b0f596f0c3ebd65b8651ad32379bc2477305bc02 100644 (file)
@@ -950,7 +950,7 @@ if (!defined("DRIVER")) {
        * @return Min_Result
        */
        function explain($connection, $query) {
-               return $connection->query("EXPLAIN " . (min_version(5.1) ? "PARTITIONS " : "") . $query);
+               return $connection->query("EXPLAIN " . (min_version(5.1) && !min_version(5.7) ? "PARTITIONS " : "") . $query);
        }
 
        /** Get approximate number of rows
index dbe8836ee0af5a8012f6dda2ddef9fdd5f90e244..03e894845ca91b6474ce8754c1c93e7973be7381 100644 (file)
@@ -2,6 +2,7 @@ Adminer 4.7.10-dev:
 Skip date columns for non-date values in search anywhere
 Add DB version to comment in export
 Support PHP 8 in create table (regression from 4.7.9)
+MySQL 8: Fix EXPLAIN in SQL command
 
 Adminer 4.7.9 (released 2021-02-07):
 Fix XSS in browsers which don't encode URL parameters (bug #775, regression from 4.7.0)