mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Fix EXPLAIN in MySQL < 5.1, bug since Adminer 3.6.4 (thanks to Coudy)
This commit is contained in:
@@ -851,7 +851,7 @@ if (!defined("DRIVER")) {
|
|||||||
* @return Min_Result
|
* @return Min_Result
|
||||||
*/
|
*/
|
||||||
function explain($connection, $query) {
|
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
|
/** Get approximate number of rows
|
||||||
|
@@ -15,6 +15,7 @@ MySQL: Display bit type as binary number
|
|||||||
MySQL: Improve export of binary data types
|
MySQL: Improve export of binary data types
|
||||||
MySQL: Fix handling of POINT data type (bug #3582578)
|
MySQL: Fix handling of POINT data type (bug #3582578)
|
||||||
MySQL: Don't export binary and geometry columns twice in select
|
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
|
SQLite: Export views
|
||||||
|
|
||||||
Adminer 3.6.4 (released 2013-04-26):
|
Adminer 3.6.4 (released 2013-04-26):
|
||||||
|
Reference in New Issue
Block a user