diff options
author | unknown <sergefp@mysql.com> | 2005-09-23 13:43:20 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-09-23 13:43:20 +0400 |
commit | 32de973588d71d4cb7a6decf7a83c0554de2a9a1 (patch) | |
tree | 2e801cb6f35588dff5e51605eaa727f593755774 /mysql-test/t/func_in.test | |
parent | 727f0b8a1f2fdc3f458f6b5da5ebe3cc73620403 (diff) | |
download | mariadb-git-32de973588d71d4cb7a6decf7a83c0554de2a9a1.tar.gz |
Fix for BUG#13419: In "ref" optimizer, take into account that item=Item_func_in(x,y) is
not equivalent to "x=y" when item->negated == TRUE.
mysql-test/r/func_in.result:
Testcase for BUG#13419
mysql-test/t/func_in.test:
Testcase for BUG#13419
sql/sql_select.cc:
Fix for BUG#13419:
* Take into account that item=Item_func_in(x,y) is not equivalent to "x=y" when
item->negated == TRUE.
* Removed comment that is no longer true.
Diffstat (limited to 'mysql-test/t/func_in.test')
-rw-r--r-- | mysql-test/t/func_in.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_in.test b/mysql-test/t/func_in.test index aec2de7a467..2ffe5a2d5f7 100644 --- a/mysql-test/t/func_in.test +++ b/mysql-test/t/func_in.test @@ -102,4 +102,11 @@ insert into t1 values ('aa'), ('bb'); select * from t1 where a in (NULL, 'aa'); drop table t1; +# BUG#13419 +create table t1 (id int, key(id)); +insert into t1 values (1),(2),(3); +select count(*) from t1 where id not in (1); +select count(*) from t1 where id not in (1,2); +drop table t1; + # End of 4.1 tests |