summaryrefslogtreecommitdiff
path: root/mysql-test/main/win.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/win.test')
-rw-r--r--mysql-test/main/win.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/main/win.test b/mysql-test/main/win.test
index e71a4376392..3d5fb2240de 100644
--- a/mysql-test/main/win.test
+++ b/mysql-test/main/win.test
@@ -2385,3 +2385,12 @@ DROP TABLE t1;
--echo #
--echo # End of 10.3 tests
--echo #
+
+--echo #
+--echo # MDEV-16722: Assertion `type() != NULL_ITEM' failed
+--echo #
+
+create table t1 (a int);
+insert into t1 values (1),(2),(3);
+SELECT row_number() OVER (order by a) FROM t1 order by NAME_CONST('myname',NULL);
+drop table t1;