diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-03-10 12:46:56 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-03-10 12:46:56 +0100 |
commit | 8dad7dfa6ae40e54e814d3ba135f45bff0c13e8f (patch) | |
tree | 0432ab82e496017306a155eeb530ff5f2e184c4e /mysql-test/r/select_jcl6.result | |
parent | 9d8ee74b38c5db13dc4466e76b7ad2eb8ce36a5a (diff) | |
parent | 926b0f54c9b0f261460e886969dde9bbf1916852 (diff) | |
download | mariadb-git-8dad7dfa6ae40e54e814d3ba135f45bff0c13e8f.tar.gz |
5.3->5.5 merge
Diffstat (limited to 'mysql-test/r/select_jcl6.result')
-rw-r--r-- | mysql-test/r/select_jcl6.result | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/select_jcl6.result b/mysql-test/r/select_jcl6.result index b5c6f89b87b..467f940c85d 100644 --- a/mysql-test/r/select_jcl6.result +++ b/mysql-test/r/select_jcl6.result @@ -5313,6 +5313,26 @@ INSERT INTO t2 VALUES (3),(4); SELECT * FROM t1, t2 WHERE a=3 AND a=b; a b drop table t1,t2; +# +# Bug mdev-4250: wrong transformation of WHERE condition with OR +# +CREATE TABLE t1 (pk int PRIMARY KEY, a int); +INSERT INTO t1 VALUES (3,0), (2,0), (4,1), (5,0), (1,0); +SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0; +pk a +EXPLAIN EXTENDED +SELECT * FROM t1 WHERE (1=2 OR t1.pk=2) AND t1.a <> 0; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables +Warnings: +Note 1003 select 2 AS `pk`,0 AS `a` from `test`.`t1` where ((0 <> 0)) +DROP TABLE t1; +SELECT * FROM mysql.time_zone +WHERE ( NOT (Use_leap_seconds <= Use_leap_seconds AND Time_zone_id != 1) +AND Time_zone_id = Time_zone_id +OR Time_zone_id <> Time_zone_id ) +AND Use_leap_seconds <> 'N'; +Time_zone_id Use_leap_seconds End of 5.3 tests set join_cache_level=default; show variables like 'join_cache_level'; |