Browse Source
MDEV-16722: Assertion `type() != NULL_ITEM' failed
MDEV-16722: Assertion `type() != NULL_ITEM' failed
We hit this assert during the create of a temporary table field because the current code does not handle the case when the value of the NAME_CONST function is NULL. Fixed this by allowing creation of temporary table fields even for the case when NAME_CONST returns NULL value. Introduced tmp_table_field_from_field_type_maybe_null() function in Item class so both Item_basic_value and Item_name_const can use it. Introduced a virtual method get_func_item() in the Item class.pull/852/head
7 changed files with 68 additions and 54 deletions
-
11mysql-test/main/win.result
-
9mysql-test/main/win.test
-
22sql/item.cc
-
24sql/item.h
-
14sql/item_cmpfunc.h
-
1sql/item_func.h
-
41sql/sql_select.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue