diff --git a/mysql-test/r/subselect_sj.result b/mysql-test/r/subselect_sj.result index c845d9e9e9e..7471abd5aba 100644 --- a/mysql-test/r/subselect_sj.result +++ b/mysql-test/r/subselect_sj.result @@ -704,21 +704,21 @@ FROM it1 LEFT JOIN it2 ON it2.datetime_key); int_key 0 0 -2 0 +0 +0 +0 +2 +2 3 -0 -7 -0 -7 -7 -9 -2 -9 5 -0 +5 +7 +7 +7 8 -5 +9 +9 EXPLAIN SELECT int_key FROM ot1 WHERE int_nokey IN (SELECT it2.int_key diff --git a/mysql-test/r/subselect_sj_jcl6.result b/mysql-test/r/subselect_sj_jcl6.result index cbdb3f85927..90c364217af 100644 --- a/mysql-test/r/subselect_sj_jcl6.result +++ b/mysql-test/r/subselect_sj_jcl6.result @@ -714,22 +714,22 @@ WHERE int_nokey IN (SELECT it2.int_key FROM it1 LEFT JOIN it2 ON it2.datetime_key); int_key 0 -5 -9 -9 -7 +0 +0 +0 +0 +0 +2 2 -8 -0 -2 -0 -0 -0 -0 -5 -7 -7 3 +5 +5 +7 +7 +7 +8 +9 +9 EXPLAIN SELECT int_key FROM ot1 WHERE int_nokey IN (SELECT it2.int_key diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test index 4f9331be476..9a8e6175e87 100644 --- a/mysql-test/t/subselect_sj.test +++ b/mysql-test/t/subselect_sj.test @@ -649,6 +649,7 @@ CREATE TABLE it1 ( ); INSERT INTO it1 VALUES (9,5), (0,4); +--sorted_result SELECT int_key FROM ot1 WHERE int_nokey IN (SELECT it2.int_key FROM it1 LEFT JOIN it2 ON it2.datetime_key);