• Galina Shalygina's avatar
    MDEV-14835 Server crashes in Field_iterator_table::create_item when number of · 9d97e601
    Galina Shalygina authored
    elements of BIGINT or YEAR type in the IN list reaches in_predicate_conversion_threshold
    
    The bug appears at the prepare stage when IN-predicate with the long list
    of values is converted into IN-subquery. It happens because values in the
    right operand of the IN-predicate that have BIGINT or YEAR types are converted
    into the Item_int_with_ref.
    To fix it in the procedure Item_func_in::create_value_list_for_tvc
    real_item() is taken for each value in the right operand of the IN-predicate.
    9d97e601
opt_tvc.result 22.8 KB