summaryrefslogtreecommitdiff
path: root/mysql-test/main/win.test
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 13:00:48 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 13:00:48 +0200
commitf5ff7d09c73b5527cb6e0540cd470db9d8a82108 (patch)
tree23728ff9752891cb78060ed748a3fc8bb7381c40 /mysql-test/main/win.test
parent0eabc285a3c0cf0285d569a29c549634238fbdae (diff)
parent9ba385a50d0cd611fce61462fc3e03e82b1ffee9 (diff)
downloadmariadb-git-f5ff7d09c73b5527cb6e0540cd470db9d8a82108.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'mysql-test/main/win.test')
-rw-r--r--mysql-test/main/win.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/main/win.test b/mysql-test/main/win.test
index 171a57180dc..1e0f89b5542 100644
--- a/mysql-test/main/win.test
+++ b/mysql-test/main/win.test
@@ -2731,6 +2731,16 @@ SELECT i, LAST_VALUE(COUNT(i)) OVER (PARTITION BY i ORDER BY j) FROM t1 GROUP BY
DROP TABLE t1;
--echo #
+--echo # MDEV-15208: server crashed, when using ORDER BY with window function and UNION
+--echo #
+
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (1),(1),(1),(1),(1),(2),(2),(2),(2),(2),(2);
+--error ER_AGGREGATE_ORDER_FOR_UNION
+SELECT 1 UNION SELECT a FROM t1 ORDER BY (row_number() over ());
+DROP TABLE t1;
+
+--echo #
--echo # End of 10.2 tests
--echo #