1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Explain partitions in SQL query (bug #3600150)

This commit is contained in:
Jakub Vrana
2013-04-04 18:40:49 -07:00
parent 3093f58157
commit 2c626c7fc7
2 changed files with 2 additions and 1 deletions

View File

@@ -846,7 +846,7 @@ if (!defined("DRIVER")) {
* @return Min_Result
*/
function explain($connection, $query) {
return $connection->query("EXPLAIN $query");
return $connection->query("EXPLAIN " . ($connection->server_info ? "PARTITIONS " : "") . $query);
}
/** Get approximate number of rows