mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-30378 Versioned REPLACE succeeds with ON DELETE RESTRICT constraint
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.
This commit is contained in:
@ -4396,6 +4396,7 @@ TABLE *select_create::create_table_from_items(THD *thd,
|
||||
*/
|
||||
DBUG_ASSERT(0);
|
||||
}
|
||||
create_table->table->pos_in_table_list= create_table;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user