summaryrefslogtreecommitdiff
path: root/mysql-test/include/index_merge1.inc
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-10-01 19:49:59 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-10-01 19:49:59 +0300
commit7adf7154f7c3d09dacf64872620f44d28b0a8bdc (patch)
tree2a384fb264d7447ce7dec4586f2e3b29b9875378 /mysql-test/include/index_merge1.inc
parentb920fb4512f66545bc301cea78cb38b5ab9c3a86 (diff)
parenteb3c08069db60d61f41dacb10fd6b73635fec236 (diff)
downloadmariadb-git-7adf7154f7c3d09dacf64872620f44d28b0a8bdc.tar.gz
merge of bug #37943 5.0-bugteam -> 5.1-bugteam
Diffstat (limited to 'mysql-test/include/index_merge1.inc')
-rw-r--r--mysql-test/include/index_merge1.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/include/index_merge1.inc b/mysql-test/include/index_merge1.inc
index 2ecdbe583c2..023d582065e 100644
--- a/mysql-test/include/index_merge1.inc
+++ b/mysql-test/include/index_merge1.inc
@@ -487,3 +487,18 @@ select * from t2 where a=4 or b=4;
drop table t1, t2;
+#
+# Bug #37943: Reproducible mysqld crash/sigsegv in sel_trees_can_be_ored
+#
+
+CREATE TABLE t1 (a varchar(8), b set('a','b','c','d','e','f','g','h'),
+ KEY b(b), KEY a(a));
+INSERT INTO t1 VALUES ('y',''), ('z','');
+
+#should not crash
+SELECT b,a from t1 WHERE (b!='c' AND b!='f' && b!='h') OR
+ (a='pure-S') OR (a='DE80337a') OR (a='DE80799');
+
+DROP TABLE t1;
+
+--echo End of 5.0 tests