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:
@@ -258,10 +258,8 @@ select * from t2;
|
||||
insert into t2 (a) values (1025);
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR ..
|
||||
--disable_cursor_protocol
|
||||
--error ER_DUP_ENTRY
|
||||
eval select f2(25) into outfile "$MYSQLTEST_VARDIR/tmp/dml.out" from t1;
|
||||
--enable_cursor_protocol
|
||||
select * from t2;
|
||||
rollback;
|
||||
select * from t2;
|
||||
@@ -281,10 +279,8 @@ select * from t2;
|
||||
--echo =======================================================================
|
||||
|
||||
insert into t2 (a) values (1027);
|
||||
--disable_cursor_protocol
|
||||
--error ER_DUP_ENTRY
|
||||
select f2(27) into @foo;
|
||||
--enable_cursor_protocol
|
||||
select * from t2;
|
||||
rollback;
|
||||
select * from t2;
|
||||
|
Reference in New Issue
Block a user