summaryrefslogtreecommitdiff
path: root/mysql-test/t/win.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/win.test')
-rw-r--r--mysql-test/t/win.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/win.test b/mysql-test/t/win.test
index cf6d88d7c44..c2022499acf 100644
--- a/mysql-test/t/win.test
+++ b/mysql-test/t/win.test
@@ -1955,6 +1955,17 @@ UNION ALL
DROP TABLE t1;
--echo #
+--echo # A regression after MDEV-13351:
+--echo # MDEV-13374 : Server crashes in first_linear_tab / st_select_lex::set_explain_type
+--echo # upon UNION with aggregate function
+--echo #
+
+CREATE TABLE t1 (i INT) ENGINE=MyISAM;
+INSERT INTO t1 VALUES (1),(2);
+SELECT i AS fld FROM t1 UNION SELECT COUNT(*) AS fld FROM t1;
+DROP TABLE t1;
+
+--echo #
--echo # Start of 10.3 tests
--echo #