1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: select ... into tests

* automatically disable ps2 and cursor protocol when the
  select statement returns no result set
* remove manual {disable|enable}_{ps2|cursor}_protocol from around
  `select ... into` in tests
* other misc collateral test cleanups
This commit is contained in:
Sergei Golubchik
2024-12-13 11:56:31 +01:00
parent 9ee09a33bb
commit e7f7789482
82 changed files with 110 additions and 2338 deletions

View File

@@ -26,11 +26,7 @@ insert into t1 values(3, 0, 0, 0, password('does_this_work?'));
--disable_warnings
insert into t1 values(4, connection_id(), rand()*1000, rand()*1000, password('does_this_still_work?'));
--enable_warnings
--disable_cursor_protocol
--disable_ps2_protocol
select * into outfile 'rpl_misc_functions.outfile' from t1;
--enable_ps2_protocol
--enable_cursor_protocol
let $MYSQLD_DATADIR= `select @@datadir`;
sync_slave_with_master;
create temporary table t2 like t1;
@@ -95,12 +91,8 @@ INSERT INTO t1 (col_a) VALUES (test_replication_sf());
--enable_prepare_warnings
# Dump table on slave
--disable_cursor_protocol
--disable_ps2_protocol
select * from t1 into outfile "../../tmp/t1_slave.txt";
--disable_prepare_warnings
--enable_ps2_protocol
--enable_cursor_protocol
# Load data from slave into temp table on master
connection master;