]> git.joonet.de Git - adminer.git/commitdiff
Use the same order in tables list and tables status
authorJakub Vrana <jakub@vrana.cz>
Sat, 21 Dec 2013 03:18:19 +0000 (19:18 -0800)
committerJakub Vrana <jakub@vrana.cz>
Sat, 21 Dec 2013 03:18:19 +0000 (19:18 -0800)
adminer/drivers/mysql.inc.php

index 9206293894853f05672457ad95d802d40d190e76..3b7717035ffd19a3845c4e684c382e63f47bdd6c 100644 (file)
@@ -386,7 +386,10 @@ if (!defined("DRIVER")) {
        */
        function tables_list() {
                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