summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorramil/ram@mysql.com/myoffice.izhnet.ru <>2006-10-23 12:58:20 +0500
committerramil/ram@mysql.com/myoffice.izhnet.ru <>2006-10-23 12:58:20 +0500
commitdd2a1d1e96c0ca2619b37fb14a7c0d6b61009283 (patch)
treeef3f2739844f24507a76edd5c83f9a68e68dc68b /mysql-test
parent13b9adbac315981a08d9d21216aadfc248f5e637 (diff)
parent0027b6e4b772a6b90ed67048451f3455aacfbf5d (diff)
downloadmariadb-git-dd2a1d1e96c0ca2619b37fb14a7c0d6b61009283.tar.gz
Merge mysql.com:/usr/home/ram/work/mysql-4.1-maint
into mysql.com:/usr/home/ram/work/bug20732/my41-bug20732
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/range.result10
-rw-r--r--mysql-test/t/range.test12
2 files changed, 21 insertions, 1 deletions
diff --git a/mysql-test/r/range.result b/mysql-test/r/range.result
index b436519d967..f25d94f8066 100644
--- a/mysql-test/r/range.result
+++ b/mysql-test/r/range.result
@@ -649,3 +649,13 @@ OR ((pk4 =1) AND (((pk1 IN ( 7, 2, 1 ))) OR (pk1 =522)) AND ((pk2 IN ( 0, 2635))
pk1 pk2 pk3 pk4 filler
2621 2635 1000015 0 filler
drop table t1, t2;
+create table t1(a char(2), key(a(1)));
+insert into t1 values ('x'), ('xx');
+explain select a from t1 where a > 'x';
+id select_type table type possible_keys key key_len ref rows Extra
+1 SIMPLE t1 range a a 2 NULL 2 Using where
+select a from t1 where a > 'x';
+a
+xx
+drop table t1;
+End of 4.1 tests
diff --git a/mysql-test/t/range.test b/mysql-test/t/range.test
index 9280911df2c..245178d7d4a 100644
--- a/mysql-test/t/range.test
+++ b/mysql-test/t/range.test
@@ -510,4 +510,14 @@ OR ((pk4 =1) AND (((pk1 IN ( 7, 2, 1 ))) OR (pk1 =522)) AND ((pk2 IN ( 0, 2635))
) AND (pk3 >=1000000);
drop table t1, t2;
-# End of 4.1 tests
+#
+# Bug #20732: Partial index and long sjis search with '>' fails sometimes
+#
+
+create table t1(a char(2), key(a(1)));
+insert into t1 values ('x'), ('xx');
+explain select a from t1 where a > 'x';
+select a from t1 where a > 'x';
+drop table t1;
+
+--echo End of 4.1 tests