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

View file

@ -3,6 +3,7 @@ Display pagination on a fixed position
Display SQL edit form on Ctrl+click on the select query
Recover original view, trigger, routine if creating fails
Clear column name after resetting search (bug #3601200)
Explain partitions in SQL query (bug #3600150)
Allow loading more data with inline edit (bug #3605531)
Stay on the same page after deleting rows (bug #3605845)
Handle max_input_vars