1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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

Part5: Derive Item_param from Type_handler_hybrid_field_type
This commit is contained in:
Alexander Barkov
2015-12-02 16:22:19 +04:00
parent c3494e19cb
commit ee3a8cb023
4 changed files with 37 additions and 43 deletions

View File

@ -318,6 +318,10 @@ public:
enum_field_types field_type() const { return m_type_handler->field_type(); }
Item_result result_type() const { return m_type_handler->result_type(); }
Item_result cmp_type() const { return m_type_handler->cmp_type(); }
void set_handler(const Type_handler *other)
{
m_type_handler= other;
}
const Type_handler *set_handler_by_result_type(Item_result type)
{
return (m_type_handler= get_handler_by_result_type(type));