diff options
author | unknown <monty@donna.mysql.fi> | 2001-03-10 17:05:10 +0200 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-03-10 17:05:10 +0200 |
commit | 74ea7333032ebc1d396f1939fd5a84c7a6ecc50c (patch) | |
tree | cc1b41b3c722e4793c0fc03a04d720d88cfa332d /mysql-test | |
parent | 7957ec7e339177d246a34491ccdda9851fc00956 (diff) | |
download | mariadb-git-74ea7333032ebc1d396f1939fd5a84c7a6ecc50c.tar.gz |
Fixed bug in MAX() optimizing for BDB tables
Docs/manual.texi:
Updated changelog
mysql-test/README:
Added reference to manual
mysql-test/r/bdb.result:
Added test for MAX() bug
mysql-test/r/innobase.result:
Added test for MAX() bug
mysql-test/t/bdb.test:
Added test for MAX() bug
mysql-test/t/innobase.test:
Added test for MAX() bug
sql-bench/server-cfg.sh:
Don't create big blobs with innobase
sql/ha_berkeley.cc:
Fixed bug in MAX() optimizing
BitKeeper/etc/ignore:
Added sql/.gdbinit to the ignore list
sql/ha_innobase.h:
Fixed bug in MAX() optimizing
sql/handler.h:
Fixed bug in MAX() optimizing
sql/opt_sum.cc:
Fixed bug in MAX() optimizing
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/README | 5 | ||||
-rw-r--r-- | mysql-test/r/bdb.result | 2 | ||||
-rw-r--r-- | mysql-test/r/innobase.result | 2 | ||||
-rw-r--r-- | mysql-test/t/bdb.test | 14 | ||||
-rw-r--r-- | mysql-test/t/innobase.test | 14 |
5 files changed, 36 insertions, 1 deletions
diff --git a/mysql-test/README b/mysql-test/README index 6ad59ea6a8b..c5dc3e219de 100644 --- a/mysql-test/README +++ b/mysql-test/README @@ -6,7 +6,10 @@ actually have a co-existing MySQL installation - the tests will not conflict with it. All tests must pass. If one or more of them fail on your system, please -report the details to bugs@lists.mysql.com +read the following manual section of how to report the problem: + +http://www.mysql.com/doc/M/y/MySQL_test_suite.html + You can create your own test cases. To create a test case: diff --git a/mysql-test/r/bdb.result b/mysql-test/r/bdb.result index 42d14e1c34f..2e760ae5b75 100644 --- a/mysql-test/r/bdb.result +++ b/mysql-test/r/bdb.result @@ -490,3 +490,5 @@ a 2 a b a 1 a 2 +MIN(B) MAX(b) +1 1 diff --git a/mysql-test/r/innobase.result b/mysql-test/r/innobase.result index 577bfcbf5b2..6c45bfd810d 100644 --- a/mysql-test/r/innobase.result +++ b/mysql-test/r/innobase.result @@ -443,3 +443,5 @@ i j 1 2 i j 1 2 +MIN(B) MAX(b) +1 1 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; diff --git a/mysql-test/t/innobase.test b/mysql-test/t/innobase.test index bca10751c13..4fa8d07bd52 100644 --- a/mysql-test/t/innobase.test +++ b/mysql-test/t/innobase.test @@ -394,3 +394,17 @@ select * from t1 where i=1 and j=2; create index ax1 on t1 (i,j); select * from t1 where i=1 and j=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 = innobase; + +INSERT INTO t1 VALUES (1, 1); +SELECT MIN(B),MAX(b) FROM t1 WHERE t1.a = 1; +drop table t1; |