diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index d7427172..b99e8755 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -851,7 +851,7 @@ if (!defined("DRIVER")) { * @return Min_Result */ function explain($connection, $query) { - return $connection->query("EXPLAIN " . ($connection->server_info ? "PARTITIONS " : "") . $query); + return $connection->query("EXPLAIN " . ($connection->server_info >= 5.1 ? "PARTITIONS " : "") . $query); } /** Get approximate number of rows diff --git a/changes.txt b/changes.txt index ef0479d2..676d01d1 100644 --- a/changes.txt +++ b/changes.txt @@ -15,6 +15,7 @@ MySQL: Display bit type as binary number MySQL: Improve export of binary data types MySQL: Fix handling of POINT data type (bug #3582578) MySQL: Don't export binary and geometry columns twice in select +MySQL: Fix EXPLAIN in MySQL < 5.1, bug since Adminer 3.6.4 SQLite: Export views Adminer 3.6.4 (released 2013-04-26):