summaryrefslogtreecommitdiff
path: root/mysql-test/t/order_by.test
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-09-07 13:33:35 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-09-07 13:33:35 +0500
commit5e3fa948e2204d9df5c48622ac138f09b53a7d0d (patch)
tree6b51d9fbebafb52e4158e66d111087b1c674bf13 /mysql-test/t/order_by.test
parent7e7dfcccd64472c9d46b319e997181d0354b668c (diff)
downloadmariadb-git-5e3fa948e2204d9df5c48622ac138f09b53a7d0d.tar.gz
A fix (Bug #5428 small max_sort_length crash server).
Diffstat (limited to 'mysql-test/t/order_by.test')
-rw-r--r--mysql-test/t/order_by.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/order_by.test b/mysql-test/t/order_by.test
index 5131bb8c8b8..1d65ce9003a 100644
--- a/mysql-test/t/order_by.test
+++ b/mysql-test/t/order_by.test
@@ -486,3 +486,16 @@ select t2.col2 as col, t2.col from t2 order by t2.col;
select t2.col2, t2.col, t2.col from t2 order by t2.col;
drop table t1, t2;
+
+#
+# Bug #5428: a problem with small max_sort_length value
+#
+
+create table t1 (a char(25));
+insert into t1 set a = repeat('x', 20);
+insert into t1 set a = concat(repeat('x', 19), 'z');
+insert into t1 set a = concat(repeat('x', 19), 'ab');
+insert into t1 set a = concat(repeat('x', 19), 'aa');
+set max_sort_length=20;
+select a from t1 order by a;
+drop table t1;