diff options
author | unknown <kent@mysql.com> | 2005-09-28 13:23:57 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-09-28 13:23:57 +0200 |
commit | fe591c50bd15b3d168892ac9eab43868196cf825 (patch) | |
tree | b7071b9f626522adcf8cd553f16c8072455340e0 /mysql-test/t | |
parent | 5aecf16a2f9d27ffb281642d410309e2b02c58b8 (diff) | |
parent | 0559f1e0124280bd8cecb98611364057914791ec (diff) | |
download | mariadb-git-fe591c50bd15b3d168892ac9eab43868196cf825.tar.gz |
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/Users/kent/mysql/bk/mysql-4.1
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/merge.test | 36 | ||||
-rw-r--r-- | mysql-test/t/select.test | 10 |
2 files changed, 46 insertions, 0 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test index fa13107ca04..347a76c3991 100644 --- a/mysql-test/t/merge.test +++ b/mysql-test/t/merge.test @@ -286,6 +286,42 @@ create table t3 engine=merge union=(t1, t2) select * from t1; create table t3 engine=merge union=(t1, t2) select * from t2; drop table t1, t2; +# +# Bug#9112 - Merge table with composite index producing invalid results with some queries +# This test case will fail only without the bugfix and some +# non-deterministic circumstances. It depends on properly initialized +# "un-initialized" memory. At the time it happens with a standard +# non-debug build. But there is no guarantee that this will be always so. +# +create table t1 ( + a double(16,6), + b varchar(10), + index (a,b) +) engine=merge union=(t2,t3); + +create table t2 ( + a double(16,6), + b varchar(10), + index (a,b) +) engine=myisam; + +create table t3 ( + a double(16,6), + b varchar(10), + index (a,b) +) engine=myisam; + +insert into t2 values ( null, ''); +# We may have insufficient accuracy for 16 digits of '9'. +# Suppress a "truncate" warning due to accuracy problems. +--disable_warnings +insert into t2 values ( 9999999999.999999, ''); +--enable_warnings +insert into t3 select * from t2; +select min(a), max(a) from t1; +flush tables; +select min(a), max(a) from t1; +drop table t1, t2, t3; # BUG#6699 : no sorting on 'ref' retrieval create table t1 (a int,b int,c int, index (a,b,c)); create table t2 (a int,b int,c int, index (a,b,c)); diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test index b51ea89c7dd..bdadd5c536b 100644 --- a/mysql-test/t/select.test +++ b/mysql-test/t/select.test @@ -2164,4 +2164,14 @@ select found_rows(); DROP TABLE t1; +# +# Bug #13356 assertion failed in resolve_const_item() +# +create table t1(f1 int, f2 int); +create table t2(f3 int); +select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,1)); +select f1 from t1,t2 where f1=f2 and (f1,NULL) = ((1,1)); +select f1 from t1,t2 where f1=f2 and (f1,f2) = ((1,NULL)); +drop table t1,t2; + # End of 4.1 tests |