1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-8860 Wrong result for WHERE 2016 < SOME (SELECT CAST(time_column AS DATETIME) FROM t1)

MDEV-8875 Wrong metadata for MAX(CAST(time_column AS DATETIME))
This commit is contained in:
Alexander Barkov
2015-09-30 16:04:24 +04:00
parent cc9cfecab7
commit cb2c799bd0
6 changed files with 103 additions and 18 deletions

View File

@ -270,6 +270,12 @@ class Type_handler_hybrid_field_type: public Type_handler
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)
:m_type_handler(get_handler_by_field_type(type))
{ }
Type_handler_hybrid_field_type(const Type_handler_hybrid_field_type *other)
:m_type_handler(other->m_type_handler)
{ }
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(); }