diff options
author | monty@mysql.com <> | 2004-10-23 03:30:27 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-10-23 03:30:27 +0300 |
commit | 8b6839e6446fde2931583d4d8b74bb531add5062 (patch) | |
tree | 1f64399a0e4969a64a4f1500ed9f131f3cc00bf5 /mysql-test/t/heap.test | |
parent | f5b33f6e6ae065496688f8fd1390c4d6a0826cd2 (diff) | |
download | mariadb-git-8b6839e6446fde2931583d4d8b74bb531add5062.tar.gz |
Fixed wrong range test code for HEAP tables. This caused a crash when doing a range test with a key that didn't have lower or upper bound (Bug #6082)
More test cases
Diffstat (limited to 'mysql-test/t/heap.test')
-rw-r--r-- | mysql-test/t/heap.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test index 37fc5a43227..e1776245d9e 100644 --- a/mysql-test/t/heap.test +++ b/mysql-test/t/heap.test @@ -164,3 +164,13 @@ CREATE TABLE `job_titles` ( SELECT MAX(job_title_id) FROM job_titles; DROP TABLE job_titles; + +# +# Test of delete with NOT NULL +# (Bug #6082) +# + +CREATE TABLE t1 (a INT NOT NULL, B INT, KEY(B)) ENGINE=HEAP; +INSERT INTO t1 VALUES(1,1), (1,NULL); +SELECT * FROM t1 WHERE B is not null; +DROP TABLE t1; |