diff options
author | monty@donna.mysql.fi <> | 2001-03-10 17:05:10 +0200 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-03-10 17:05:10 +0200 |
commit | c1402e2d5c606bfb5e35542ff92ba8e53cb797ab (patch) | |
tree | cc1b41b3c722e4793c0fc03a04d720d88cfa332d /mysql-test/t/bdb.test | |
parent | 267c8760cb33208e2c1d772340c2aaf234806c45 (diff) | |
download | mariadb-git-c1402e2d5c606bfb5e35542ff92ba8e53cb797ab.tar.gz |
Fixed bug in MAX() optimizing for BDB tables
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r-- | mysql-test/t/bdb.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index 900260217d5..564491fc520 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -664,3 +664,17 @@ SELECT * FROM t1 WHERE a='a' AND b=2; SELECT * FROM t1 WHERE a='a' AND b in (2); SELECT * FROM t1 WHERE a='a' AND b in (1,2); drop table t1; + +# +# Test min-max optimization +# + +CREATE TABLE t1 ( + a int3 unsigned NOT NULL, + b int1 unsigned NOT NULL, + UNIQUE (a, b) +) TYPE = BDB; + +INSERT INTO t1 VALUES (1, 1); +SELECT MIN(B),MAX(b) FROM t1 WHERE t1.a = 1; +drop table t1; |