]> git.joonet.de Git - adminer.git/commitdiff
Support MySQL 8
authorJakub Vrana <jakub@vrana.cz>
Thu, 9 Mar 2017 17:52:00 +0000 (18:52 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 9 Mar 2017 17:52:00 +0000 (18:52 +0100)
adminer/drivers/mysql.inc.php
changes.txt

index 599a145e2593b37412727ab198304fdbd70a97cd..62d16ed247a7f3cbb5cd409b9a3cfeec64564696 100644 (file)
@@ -429,7 +429,7 @@ if (!defined("DRIVER")) {
                global $connection;
                $return = array();
                foreach (get_rows($fast && $connection->server_info >= 5
-                       ? "SELECT TABLE_NAME AS Name, Engine, TABLE_COMMENT AS Comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " . ($name != "" ? "AND TABLE_NAME = " . q($name) : "ORDER BY Name")
+                       ? "SELECT TABLE_NAME AS Name, ENGINE AS Engine, TABLE_COMMENT AS Comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " . ($name != "" ? "AND TABLE_NAME = " . q($name) : "ORDER BY Name")
                        : "SHOW TABLE STATUS" . ($name != "" ? " LIKE " . q(addcslashes($name, "%_\\")) : "")
                ) as $row) {
                        if ($row["Engine"] == "InnoDB") {
index afb4d0d7b25484ca15ccec14ecafdf7e7fc2f820..24d6f320b099cdd725089fa9e162935d91dff695 100644 (file)
@@ -4,6 +4,7 @@ Make maxlength in edit fields a soft limit
 Add Cache-Control: immutable to static files
 MySQL: Add dedicated view for replication status
 MySQL: Support spatial indexes
+MySQL: Support MySQL 8
 PostgreSQL: Export
 PostgreSQL: Don't treat partial indexes as unique
 MS SQL: Support pdo_dblib