Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-36074 main.multidelete_engine missing result file #3833

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions mysql-test/main/multidelete_engine.result
Original file line number Diff line number Diff line change
@@ -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;
11 changes: 7 additions & 4 deletions mysql-test/main/multidelete_engine.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ 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= 6;
execute stmt using @lim;
select * from t2 ORDER BY (id);
set @lim= 1;
execute stmt using @lim;
select * from t2 ORDER BY (id);
set @lim= 3;
execute stmt using @lim;
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;