1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

MDEV-20016 Add MariaDB_DATA_TYPE_PLUGIN

This commit is contained in:
Alexander Barkov
2019-10-04 18:33:09 +04:00
parent 627027a674
commit c717483c9d
26 changed files with 3692 additions and 23 deletions

View File

@@ -3329,8 +3329,9 @@ protected:
enum_field_types type)
const;
public:
static const Type_handler *handler_by_name(const LEX_CSTRING &name);
static const Type_handler *handler_by_name_or_error(const LEX_CSTRING &name);
static const Type_handler *handler_by_name(THD *thd, const LEX_CSTRING &name);
static const Type_handler *handler_by_name_or_error(THD *thd,
const LEX_CSTRING &name);
static const Type_handler *odbc_literal_type_handler(const LEX_CSTRING *str);
static const Type_handler *blob_type_handler(uint max_octet_length);
static const Type_handler *string_type_handler(uint max_octet_length);
@@ -6868,7 +6869,10 @@ class Type_collection
{
public:
virtual ~Type_collection() {}
virtual bool init(Type_handler_data *data)= 0;
virtual bool init(Type_handler_data *data)
{
return false;
}
virtual const Type_handler *handler_by_name(const LEX_CSTRING &name) const= 0;
virtual const Type_handler *aggregate_for_result(const Type_handler *h1,
const Type_handler *h2)