diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 62d16ed2..f38853ae 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -301,12 +301,16 @@ if (!defined("DRIVER")) { * @return mixed Min_DB or string for error */ function connect() { - global $adminer; + global $adminer, $types, $structured_types; $connection = new Min_DB; $credentials = $adminer->credentials(); if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) { $connection->set_charset(charset($connection)); // available in MySQLi since PHP 5.0.5 $connection->query("SET sql_quote_show_create = 1, autocommit = 1"); + if (version_compare($connection->server_info, '5.7.8') >= 0) { + $structured_types[lang('Strings')][] = "json"; + $types["json"] = 4294967295; + } return $connection; } $return = $connection->error; diff --git a/changes.txt b/changes.txt index 24d6f320..d16c74ff 100644 --- a/changes.txt +++ b/changes.txt @@ -5,6 +5,7 @@ Add Cache-Control: immutable to static files MySQL: Add dedicated view for replication status MySQL: Support spatial indexes MySQL: Support MySQL 8 +MySQL: Support JSON data type PostgreSQL: Export PostgreSQL: Don't treat partial indexes as unique MS SQL: Support pdo_dblib