From 03066aa16523eea399393951d489e83e79de283e Mon Sep 17 00:00:00 2001 From: Rex Johnston Date: Thu, 16 Apr 2026 16:35:14 +1200 Subject: [PATCH] MDEV-39333 main.group_by fails with incorrectly ordered rows Since commit 80ea16c6209, 'order by column is null' may produce an indeterminate column order of rows where 'column is null' is satisfied. This commit fixes an existing test in main.group_by for MDEV-6129. --- mysql-test/main/group_by.test | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql-test/main/group_by.test b/mysql-test/main/group_by.test index 19f2e6582ae44..69a1315ff9636 100644 --- a/mysql-test/main/group_by.test +++ b/mysql-test/main/group_by.test @@ -1786,6 +1786,7 @@ DROP TABLE t1; --echo # SET sql_mode='ONLY_FULL_GROUP_BY'; +--sorted_result SELECT 1 AS test UNION SELECT 2 AS test ORDER BY test IS NULL ASC; SET sql_mode='';