1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-29390: Improve coverage for UPDATE and DELETE statements in MTR test suites

Created tests for "delete" based on update_use_source.test

For the update_use_source.test tests, data recovery in the table has been changed
from a rollback transaction to a complete delete and re-insert of the data with
optimize table. Cases are now being checked on three engines.

Added tests for update/delete with LooseScan and DuplicateWeedout optimization strategies
Added tests for engine MEMORY on delete and update
Added tests for multi-update with JSON_TABLE
Added tests for multi-update and multi-delete for engine Connect
This commit is contained in:
Lena Startseva
2022-09-19 12:26:59 +07:00
committed by Igor Babaev
parent 9a3fd1df01
commit 1e0a72a18b
21 changed files with 22177 additions and 1017 deletions

View File

@ -0,0 +1,42 @@
--source include/have_innodb.inc
set @save_default_engine=@@default_storage_engine;
--echo #######################################
--echo # #
--echo # Engine InnoDB #
--echo # #
--echo #######################################
set global innodb_stats_persistent=1;
set default_storage_engine=InnoDB;
--source include/delete_use_source_innodb.inc
--echo #######################################
--echo # #
--echo # Engine Aria #
--echo # #
--echo #######################################
set default_storage_engine=Aria;
--source include/delete_use_source.inc
--echo #######################################
--echo # #
--echo # Engine MyISAM #
--echo # #
--echo #######################################
set default_storage_engine=MyISAM;
--source include/delete_use_source.inc
--echo #######################################
--echo # #
--echo # Engine MEMORY #
--echo # #
--echo #######################################
set default_storage_engine=MEMORY;
--source include/delete_use_source_memory.inc
set @@default_storage_engine=@save_default_engine;
--echo #
--echo # End of 11.0 tests
--echo #