1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-32244 Wrong bit encoding using COALESCE

When aggregating pairs BIT+NULL and NULL+BIT for result, e.g.
in COALESCE(), preserve the BIT data type (ignore explicit NULLs).

The same fix applied to YEAR.
This commit is contained in:
Alexander Barkov
2023-10-17 12:46:31 +04:00
parent b1c8ea83a5
commit eb19638418
6 changed files with 109 additions and 2 deletions

View File

@ -4820,6 +4820,12 @@ public:
type_limits_int_by_unsigned_flag(bool unsigned_flag) const= 0;
uint32 max_display_length(const Item *item) const;
uint32 Item_decimal_notation_int_digits(const Item *item) const;
bool Item_hybrid_func_fix_attributes(THD *thd,
const char *name,
Type_handler_hybrid_field_type *,
Type_all_attributes *atrr,
Item **items,
uint nitems) const;
bool Vers_history_point_resolve_unit(THD *thd, Vers_history_point *p) const;
};