mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
MySQL 9+: Support vector type
This commit is contained in:
@@ -384,6 +384,11 @@ if (!defined("DRIVER")) {
|
|||||||
$types["uuid"] = 128;
|
$types["uuid"] = 128;
|
||||||
$edit_functions[0]['uuid'] = 'uuid';
|
$edit_functions[0]['uuid'] = 'uuid';
|
||||||
}
|
}
|
||||||
|
if (min_version(9, '', $connection)) {
|
||||||
|
$structured_types[lang('Numbers')][] = "vector";
|
||||||
|
$types["vector"] = 16383;
|
||||||
|
$edit_functions[0]['vector'] = 'string_to_vector';
|
||||||
|
}
|
||||||
return $connection;
|
return $connection;
|
||||||
}
|
}
|
||||||
$return = $connection->error;
|
$return = $connection->error;
|
||||||
@@ -1166,7 +1171,7 @@ if (!defined("DRIVER")) {
|
|||||||
$structured_types = array(); ///< @var array [$description => array($type, ...), ...]
|
$structured_types = array(); ///< @var array [$description => array($type, ...), ...]
|
||||||
foreach (array(
|
foreach (array(
|
||||||
lang('Numbers') => array("tinyint" => 3, "smallint" => 5, "mediumint" => 8, "int" => 10, "bigint" => 20, "decimal" => 66, "float" => 12, "double" => 21),
|
lang('Numbers') => array("tinyint" => 3, "smallint" => 5, "mediumint" => 8, "int" => 10, "bigint" => 20, "decimal" => 66, "float" => 12, "double" => 21),
|
||||||
lang('Date and time') => array("date" => 10, "datetime" => 19, "timestamp" => 19, "time" => 10, "year" => 4),
|
lang('Date and time') => array("dat`e" => 10, "datetime" => 19, "timestamp" => 19, "time" => 10, "year" => 4),
|
||||||
lang('Strings') => array("char" => 255, "varchar" => 65535, "tinytext" => 255, "text" => 65535, "mediumtext" => 16777215, "longtext" => 4294967295),
|
lang('Strings') => array("char" => 255, "varchar" => 65535, "tinytext" => 255, "text" => 65535, "mediumtext" => 16777215, "longtext" => 4294967295),
|
||||||
lang('Lists') => array("enum" => 65535, "set" => 64),
|
lang('Lists') => array("enum" => 65535, "set" => 64),
|
||||||
lang('Binary') => array("bit" => 20, "binary" => 255, "varbinary" => 65535, "tinyblob" => 255, "blob" => 65535, "mediumblob" => 16777215, "longblob" => 4294967295),
|
lang('Binary') => array("bit" => 20, "binary" => 255, "varbinary" => 65535, "tinyblob" => 255, "blob" => 65535, "mediumblob" => 16777215, "longblob" => 4294967295),
|
||||||
|
@@ -5,6 +5,7 @@ Print SQL errors as comments in export (regression from 3.2.0)
|
|||||||
MySQL, PostgreSQL, MS SQL: Support CHECK constraint
|
MySQL, PostgreSQL, MS SQL: Support CHECK constraint
|
||||||
MySQL: Show comments at routine call (bug #874)
|
MySQL: Show comments at routine call (bug #874)
|
||||||
MySQL: Don't offer empty enum value in edit
|
MySQL: Don't offer empty enum value in edit
|
||||||
|
MySQL 9+: Support vector type
|
||||||
PostgreSQL: Link user defined types
|
PostgreSQL: Link user defined types
|
||||||
PostgreSQL: Constraint enum values in editing (bug #270)
|
PostgreSQL: Constraint enum values in editing (bug #270)
|
||||||
PostgreSQL: Export functions
|
PostgreSQL: Export functions
|
||||||
|
Reference in New Issue
Block a user