1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

MariaDB: Add support for UUID data type

- MariaDB >= 10.7
- UUID string data type
- uuid() function for UUID type on new/edit item form
This commit is contained in:
vukbgit
2024-11-02 14:52:23 +01:00
committed by Jakub Vrana
parent 84b69da58d
commit 5492b3e055
2 changed files with 11 additions and 2 deletions

View File

@@ -366,7 +366,7 @@ if (!defined("DRIVER")) {
* @return mixed Min_DB or string for error
*/
function connect() {
global $adminer, $types, $structured_types;
global $adminer, $types, $structured_types, $edit_functions;
$connection = new Min_DB;
$credentials = $adminer->credentials();
if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) {
@@ -376,6 +376,11 @@ if (!defined("DRIVER")) {
$structured_types[lang('Strings')][] = "json";
$types["json"] = 4294967295;
}
if (min_version('', 10.7, $connection)) {
$structured_types[lang('Strings')][] = "uuid";
$types["uuid"] = 128;
$edit_functions[0]['uuid'] = 'uuid';
}
return $connection;
}
$return = $connection->error;