• Nikita Malyavin's avatar
    MDEV-30378 Versioned REPLACE succeeds with ON DELETE RESTRICT constraint · 7a98d232
    Nikita Malyavin authored
    node->is_delete was incorrectly set to NO_DELETE for a set of operations.
    
    In general we shouldn't rely on sql_command and look for more abstract ways
    to control the behavior.
    
    trg_event_map seems to be a suitable way. To mind replica nodes, it is ORed
    with slave_fk_event_map, which stores trg_event_map when replica has
    triggers disabled.
    7a98d232
foreign.result 18.8 KB