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:
committed by
Igor Babaev
parent
9a3fd1df01
commit
1e0a72a18b
42
mysql-test/main/delete_use_source_engines.test
Normal file
42
mysql-test/main/delete_use_source_engines.test
Normal 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 #
|
Reference in New Issue
Block a user