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

MDEV-12656 Crash in CREATE..SELECT..UNION with a ENUM column and NULL

This commit is contained in:
Alexander Barkov
2017-05-02 11:39:20 +04:00
parent 50b70e765b
commit 85b73e2254
6 changed files with 133 additions and 10 deletions

View File

@ -470,12 +470,24 @@ const Type_handler *Type_handler_row::type_handler_for_comparison() const
/***************************************************************************/
const Type_handler *Type_handler_enum::type_handler_for_item_field() const
{
return &type_handler_string;
}
const Type_handler *Type_handler_enum::cast_to_int_type_handler() const
{
return &type_handler_longlong;
}
const Type_handler *Type_handler_set::type_handler_for_item_field() const
{
return &type_handler_string;
}
const Type_handler *Type_handler_set::cast_to_int_type_handler() const
{
return &type_handler_longlong;