MySQL 8: Fix EXPLAIN in SQL command

This commit is contained in:
Jakub Vrana 2021-02-08 12:26:51 +01:00
parent 144039d0cb
commit 124092fd7c
2 changed files with 2 additions and 1 deletions

View 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

View 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)