• Aleksey Midenkov's avatar
    MDEV-31319 Assertion const_item_cache == true failed in Item_func::fix_fields · 21a8d2c3
    Aleksey Midenkov authored
    On create table tmp as select ... we exited Item_func::fix_fields()
    with error. fix_fields_if_needed('foo' or 'bar') failed and we
    returned true, but already changed const_item_cache. So the item is in
    inconsistent state: fixed == false and const_item_cache == false.
    
    Now we cleanup the item before the return if Item_func::fix_fields()
    fails to process.
    21a8d2c3
item_func.cc 183 KB