summaryrefslogtreecommitdiff
path: root/mysql-test/t/derived_view.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/derived_view.test')
-rw-r--r--mysql-test/t/derived_view.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/mysql-test/t/derived_view.test b/mysql-test/t/derived_view.test
index 8d1b3109d20..3da58d8ae23 100644
--- a/mysql-test/t/derived_view.test
+++ b/mysql-test/t/derived_view.test
@@ -1566,7 +1566,7 @@ DROP TABLE t1,t2;
--echo #
--echo # mdev-5105: memory overwrite in multi-table update
---echo # using natuaral join with a view
+--echo # using natural join with a view
--echo #
create table t1(a int,b tinyint,c tinyint)engine=myisam;
@@ -1579,6 +1579,19 @@ drop view v1;
drop table t1,t2,t3;
--echo #
+--echo # mdev-5288: assertion failure for query over a view with ORDER BY
+--echo #
+
+CREATE TABLE t1 (a int, b int) ENGINE=MyISAM;
+INSERT INTO t1 VALUES (4,1);
+
+CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
+EXPLAIN EXTENDED SELECT a FROM v1 WHERE a > 100 ORDER BY b;
+
+DROP VIEW v1;
+DROP TABLE t1;
+
+--echo #
--echo # end of 5.3 tests
--echo #