MySQL: Support JSON data type
This commit is contained in:
parent
50390ea38c
commit
b616c57352
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue