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,26 +26,22 @@ source include/master-slave.inc;
# just an auxiliary construction anyways, it is not needed on the
# slave.
--disable_query_log
SET @@sql_log_bin= 0;
let $rows= 5000;
create table t1 (id int not null primary key auto_increment);
--disable_query_log
let $rows= 5000;
while($rows)
{
eval insert into t1 values (null);
dec $rows;
}
--disable_cursor_protocol
--disable_ps2_protocol
eval select * into outfile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' from t1;
--enable_ps2_protocol
--enable_cursor_protocol
--enable_query_log
evalp select * into outfile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' from t1;
DROP TABLE t1;
SET @@sql_log_bin= 1;
--enable_query_log
--echo ==== Load our big file into a table ====