mirror of
https://github.com/MariaDB/server.git
synced 2025-11-24 06:01:25 +03:00
When binding to NULL, DEFAULT or IGNORE from an Item value, Item_param did not change m_type_handler, so its value remained from the previous bind. Thid led to DBUG_ASSERTs in Item_param::get_date() and Timestamp_or_zero_datetime_native_null. Fix: Set Item_param::m_type_handler to &type_handler_null when binding from an Item returning NULL. This patch also fixes MDEV-35427.