1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-9215 Detect cmp_type() and result_type() from field_type()

(A dependency task for MDEV-4912 Add a plugin to field types)
This commit is contained in:
Alexander Barkov
2015-12-01 13:13:23 +04:00
parent e3fed3b9b4
commit 607ef786fc
11 changed files with 50 additions and 49 deletions

View File

@ -28,6 +28,7 @@ class Type_handler
protected:
const Type_handler *string_type_handler(uint max_octet_length) const;
public:
static const Type_handler *get_handler_by_field_type(enum_field_types type);
virtual enum_field_types field_type() const= 0;
virtual Item_result result_type() const= 0;
virtual Item_result cmp_type() const= 0;
@ -306,7 +307,6 @@ class Type_handler_hybrid_field_type: public Type_handler
{
const Type_handler *m_type_handler;
const Type_handler *get_handler_by_result_type(Item_result type) const;
const Type_handler *get_handler_by_field_type(enum_field_types type) const;
public:
Type_handler_hybrid_field_type();
Type_handler_hybrid_field_type(enum_field_types type)