diff options
author | unknown <bar@mysql.com> | 2004-10-05 21:22:14 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-10-05 21:22:14 +0500 |
commit | 70a3abf259e95326703d2bad0cd19101d7ff5b7e (patch) | |
tree | 1e19609d836eac67b738b690a50f2fc5c9c243fd /mysql-test/t/bdb.test | |
parent | 48ff8f4ddbb79d7e99e8782e55ecc65cda800142 (diff) | |
download | mariadb-git-70a3abf259e95326703d2bad0cd19101d7ff5b7e.tar.gz |
Bug #5832 SELECT doesn't return records in some cases
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r-- | mysql-test/t/bdb.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index 86214ecd5a8..069ec758ba2 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -909,3 +909,23 @@ insert into t1 values (@a); select a, length(a), char_length(a) from t1; drop table t1; SET NAMES latin1; + +# +# Bug #5832 SELECT doesn't return records in some cases +# +CREATE TABLE t1 ( + id int unsigned NOT NULL auto_increment, + list_id smallint unsigned NOT NULL, + term TEXT NOT NULL, + PRIMARY KEY(id), + INDEX(list_id, term(4)) +) ENGINE=BDB CHARSET=utf8; +INSERT INTO t1 SET list_id = 1, term = "letterc"; +INSERT INTO t1 SET list_id = 1, term = "letterb"; +INSERT INTO t1 SET list_id = 1, term = "lettera"; +INSERT INTO t1 SET list_id = 1, term = "letterd"; +SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterc"); +SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterb"); +SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera"); +SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd"); +DROP TABLE t1; |