1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Use the same order in tables list and tables status

This commit is contained in:
Jakub Vrana
2013-12-20 19:18:19 -08:00
parent 8f79244220
commit 49f4ef5c52

View File

@@ -386,7 +386,10 @@ if (!defined("DRIVER")) {
*/ */
function tables_list() { function tables_list() {
global $connection; global $connection;
return get_key_vals("SHOW" . ($connection->server_info >= 5 ? " FULL" : "") . " TABLES"); return get_key_vals($connection->server_info >= 5
? "SELECT TABLE_NAME, TABLE_TYPE FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() ORDER BY TABLE_NAME"
: "SHOW TABLES"
);
} }
/** Count tables in all databases /** Count tables in all databases