1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-20 05:11:25 +02:00

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