• Sergei Golubchik's avatar
    MDEV-24346 valgrind error in main.precedence · a587ded2
    Sergei Golubchik authored
    in queries like
    
      create view v1 as select 2 like 1 escape (3 in (select 0 union select 1));
      select 2 union select * from v1;
    
    Item_func_like::escape was left uninitialized, because
    Item_in_optimizer is const_during_execution()
    but not actually const_item() during execution.
    
    It's not, because const subquery evaluation was disabled for derived.
    Practically it only needs to be disabled for multi-update
    that runs fix_fields() before all tables are locked.
    a587ded2
innodb_multi_update.test 1.5 KB