• Sergey Glukhov's avatar
    Bug#11766212 59270: NOT IN (YEAR( ... ), ... ) PRODUCES MANY VALGRIND WARNINGS · 33c2a5e7
    Sergey Glukhov authored
    Valgrind warning happens due to early null values check
    in Item_func_in::fix_length_and_dec(before item evaluation).
    As result null value items with uninitialized values are
    placed into array and it leads to valgrind warnings during
    value array sorting.
    The fix is to check null value after item evaluation, item
    is evaluated in in_array::set() method.
    
    
    mysql-test/r/func_in.result:
      test case
    mysql-test/t/func_in.test:
      test case
    sql/item_cmpfunc.cc:
      The fix is to check null value after item evaluation.
    33c2a5e7
func_in.test 16.4 KB