• Nikita Malyavin's avatar
    MDEV-26866 FOREIGN KEY…SET NULL corrupts an index on a virtual column · 1f5ca66e
    Nikita Malyavin authored
    The initial test case for MySQL Bug #33053297 is based on
    mysql/mysql-server@27130e25078864b010d81266f9613d389d4a229b.
    
    innobase_get_field_from_update_vector is not a suitable function to fetch
    updated row info, as well as parent table's update vector is not always
    suitable. For instance, in case of DELETE it contains undefined data.
    
    castade->update vector seems to be good enough to fetch all base columns
    update data, and besides faster, and less error-prone.
    1f5ca66e
ha_innodb.cc 641 KB