diff options
author | unknown <evgen@moonbone.local> | 2006-06-17 02:11:12 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2006-06-17 02:11:12 +0400 |
commit | d0f39b6aebec03eab69fc7744942bdab7c1bd52d (patch) | |
tree | 586c558b02a4bc7c19f63d3308824c8913e618d2 /mysql-test/t/select.test | |
parent | ef02d496a07f76a830ca7e21907df65a58ddb4d7 (diff) | |
parent | ca22a81b1c84ce81e1e9ea2c3ace7be1848027d8 (diff) | |
download | mariadb-git-d0f39b6aebec03eab69fc7744942bdab7c1bd52d.tar.gz |
Manually merged
sql/item_timefunc.cc:
Auto merged
sql/item_timefunc.h:
Auto merged
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r-- | mysql-test/t/select.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test index 12eafef9bde..f7b5a2fbcb6 100644 --- a/mysql-test/t/select.test +++ b/mysql-test/t/select.test @@ -2249,6 +2249,21 @@ select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 fro drop table t1,t2; # +# Bug #4981: 4.x and 5.x produce non-optimal execution path, 3.23 regression test failure +# +CREATE TABLE t1(a int, b int, c int, KEY b(b), KEY c(c)); +insert into t1 values (1,0,0),(2,0,0); +CREATE TABLE t2 (a int, b varchar(2), c varchar(2), PRIMARY KEY(a)); +insert into t2 values (1,'',''), (2,'',''); +CREATE TABLE t3 (a int, b int, PRIMARY KEY (a,b), KEY a (a), KEY b (b)); +insert into t3 values (1,1),(1,2); +# must have "range checked" for t2 +explain select straight_join DISTINCT t2.a,t2.b, t1.c from t1, t3, t2 + where (t1.c=t2.a or (t1.c=t3.a and t2.a=t3.b)) and t1.b=556476786 and + t2.b like '%%' order by t2.b limit 0,1; +DROP TABLE t1,t2,t3; + +# # Bug #17873: confusing error message when IGNORE INDEX refers a column name # |