MDEV-36074 main.multidelete_engine missing result file
Record the required result file and make the test more interesting, too
This commit is contained in:
parent
d54ec1b377
commit
1629435745
30
mysql-test/main/multidelete_engine.result
Normal file
30
mysql-test/main/multidelete_engine.result
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Check that limits work with hints & PS protocol
|
||||||
|
create table t2 (id int, index xid(id));
|
||||||
|
insert into t2 values (1),(10),(2),(9),(3),(8);
|
||||||
|
prepare stmt from
|
||||||
|
"DELETE t2.* FROM t2 use index(xid) ORDER BY (id) LIMIT ?";
|
||||||
|
set @lim= 1;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
id
|
||||||
|
2
|
||||||
|
3
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
set @lim= 3;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
id
|
||||||
|
9
|
||||||
|
10
|
||||||
|
set @lim= 2;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
id
|
||||||
|
insert into t2 values (1),(10),(2),(9),(3),(8);
|
||||||
|
set @lim= 6;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
id
|
||||||
|
drop table t2;
|
@ -6,15 +6,18 @@ insert into t2 values (1),(10),(2),(9),(3),(8);
|
|||||||
|
|
||||||
prepare stmt from
|
prepare stmt from
|
||||||
"DELETE t2.* FROM t2 use index(xid) ORDER BY (id) LIMIT ?";
|
"DELETE t2.* FROM t2 use index(xid) ORDER BY (id) LIMIT ?";
|
||||||
set @lim= 6;
|
|
||||||
execute stmt using @lim;
|
|
||||||
select * from t2 ORDER BY (id);
|
|
||||||
set @lim= 1;
|
set @lim= 1;
|
||||||
execute stmt using @lim;
|
execute stmt using @lim;
|
||||||
select * from t2 ORDER BY (id);
|
select * from t2 ORDER BY (id);
|
||||||
set @lim= 3;
|
set @lim= 3;
|
||||||
execute stmt using @lim;
|
execute stmt using @lim;
|
||||||
select * from t2 ORDER BY (id);
|
select * from t2 ORDER BY (id);
|
||||||
|
set @lim= 2;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
insert into t2 values (1),(10),(2),(9),(3),(8);
|
||||||
|
set @lim= 6;
|
||||||
|
execute stmt using @lim;
|
||||||
|
select * from t2 ORDER BY (id);
|
||||||
|
|
||||||
drop table t2;
|
drop table t2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user