Support MySQL 8

This commit is contained in:
Jakub Vrana 2017-03-09 18:52:00 +01:00
parent 9d7d30891e
commit 50390ea38c
2 changed files with 2 additions and 1 deletions

View 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") {

View 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