* @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;
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