From: Jakub Vrana Date: Sat, 21 Dec 2013 03:18:19 +0000 (-0800) Subject: Use the same order in tables list and tables status X-Git-Tag: v4.0.0~9 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=49f4ef5c52530449fe1e1b86620ac940d75ea421;p=adminer.git Use the same order in tables list and tables status --- diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 92062938..3b771703 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -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