diff options
author | Igor Babaev <igor@askmonty.org> | 2013-08-27 22:19:14 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2013-08-27 22:19:14 -0700 |
commit | 34aa69564d611b11a0df7cce85a9c4f82f1c6b9f (patch) | |
tree | 9fb2768f74118cc7612c51a52ce2fb94fdda38bf /mysql-test/t/select.test | |
parent | 112411b056ae16c4addcb9dc84ebf1992b719d59 (diff) | |
parent | 650d3266bb788552b9ac8dce6f5fed0cf53f480c (diff) | |
download | mariadb-git-34aa69564d611b11a0df7cce85a9c4f82f1c6b9f.tar.gz |
Merge 5.3->5.5
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r-- | mysql-test/t/select.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test index 0c28afafdd9..47cd46f209e 100644 --- a/mysql-test/t/select.test +++ b/mysql-test/t/select.test @@ -4563,5 +4563,24 @@ SELECT * FROM t1, t2 WHERE c=b AND (1=2 OR ((b='h' OR a=136) AND d=b)); DROP TABLE t1,t2; +--echo # +--echo # Bug mdev-4944: range conditition in OR formula with fields +--echo # belonging to multiple equalities +--echo # + +CREATE TABLE t1 (i1 int, j1 int) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1,8); + +CREATE TABLE t2 (i2 int, INDEX idx (i2)) ENGINE=MyISAM; +INSERT INTO t2 VALUES (8), (9); + +EXPLAIN EXTENDED +SELECT * FROM t1, t2 + WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 ); +SELECT * FROM t1, t2 + WHERE i1 = i2 AND ( FALSE OR ( j1 > 27 AND j1 < 100 OR j1 <= 3 ) AND j1 = i2 ); + +DROP TABLE t1,t2; + --echo End of 5.3 tests |