diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-06-30 12:56:31 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-06-30 12:56:31 +0400 |
commit | 768620ee5c71742e2ea00063ebe1d3cdb6cc81e9 (patch) | |
tree | 094a79b32524a38ed6d96e4e2cd5c7c94a955431 /mysql-test/include/icp_tests.inc | |
parent | 1b2f9126b838b75a651406eaf3d7269613b123a0 (diff) | |
download | mariadb-git-768620ee5c71742e2ea00063ebe1d3cdb6cc81e9.tar.gz |
MDEV-8189 field<>const and const<>field are not symmetric
Diffstat (limited to 'mysql-test/include/icp_tests.inc')
-rw-r--r-- | mysql-test/include/icp_tests.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/include/icp_tests.inc b/mysql-test/include/icp_tests.inc index 7c9feea55c2..6807d6eb1bd 100644 --- a/mysql-test/include/icp_tests.inc +++ b/mysql-test/include/icp_tests.inc @@ -639,6 +639,16 @@ SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 WHERE t2.pk <> t1.d1 AND t2.pk = 4; +# MDEV-8189 field<>const and const<>field are not symmetric +# Do the same EXPLAIN and SELECT +# with "t1.d1 <> t2.pk" instead of "t2.pk <> t1.d1" + +EXPLAIN +SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 + WHERE t1.d1 <> t2.pk AND t2.pk = 4; +SELECT t1.d1, t2.pk, t2.i1 FROM t1 STRAIGHT_JOIN t2 ON t2.i1 + WHERE t1.d1 <> t2.pk AND t2.pk = 4; + DROP TABLE t1, t2; --echo # |