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

MDEV-9234 Add Type_handler::union_element_finalize()

This commit is contained in:
Alexander Barkov
2019-04-23 13:45:28 +04:00
parent a765b19e5c
commit baadbe9601
3 changed files with 27 additions and 5 deletions

View File

@ -7890,6 +7890,19 @@ bool Type_handler_string_result::Item_eq_value(THD *thd,
}
/***************************************************************************/
bool Type_handler_string_result::union_element_finalize(const Item * item) const
{
if (item->collation.derivation == DERIVATION_NONE)
{
my_error(ER_CANT_AGGREGATE_NCOLLATIONS, MYF(0), "UNION");
return true;
}
return false;
}
/***************************************************************************/
void Type_handler_var_string::