-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-36074 main.multidelete_engine missing result file
Record the required result file and make the test more interesting, too
- Loading branch information
1 parent
87d3837
commit 5f5a3b5
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters