Skip to content

Commit a1965b8

Browse files
committed
Make testcase for MDEV-26585 stable.
1 parent a710016 commit a1965b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

mysql-test/main/group_min_max.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,9 +4057,10 @@ KEY `index_t1_on_owner_id_and_foo` (`owner_id`,`foo`)
40574057
INSERT INTO t1 (owner_id, foo, whatever)
40584058
VALUES (1, TRUE, "yello"), (1, FALSE, "yello"), (2, TRUE, "yello"),
40594059
(2, TRUE, "yello"), (2, FALSE, "yello");
4060-
EXPLAIN SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
4060+
EXPLAIN
4061+
SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
40614062
id select_type table type possible_keys key key_len ref rows Extra
4062-
1 SIMPLE t1 index NULL index_t1_on_owner_id_and_foo 7 NULL 5 Using where; Using index
4063+
1 SIMPLE t1 index NULL index_t1_on_owner_id_and_foo 7 NULL # Using where; Using index
40634064
SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
40644065
owner_id
40654066
1

mysql-test/main/group_min_max.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,8 @@ CREATE TABLE `t1` (
17171717
INSERT INTO t1 (owner_id, foo, whatever)
17181718
VALUES (1, TRUE, "yello"), (1, FALSE, "yello"), (2, TRUE, "yello"),
17191719
(2, TRUE, "yello"), (2, FALSE, "yello");
1720-
EXPLAIN SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
1720+
--replace_column 9 #
1721+
EXPLAIN
1722+
SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
17211723
SELECT DISTINCT owner_id FROM t1 WHERE foo = true GROUP BY owner_id HAVING (COUNT(*) = 1);
17221724
DROP TABLE t1;

0 commit comments

Comments
 (0)