[MDEV-3201] LP:869036 - Wrong result with in_to_exists=ON and NOT IN Created: 2011-10-06 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
This query: SELECT * returns 1 row when run with in_to_exists:
and 2 rows otherwise:
explain:
minimal optimizer switch: in_to_Exists=on,materialization=off also affects mysql 5.5 test case: CREATE TABLE t1 ( f2 varchar(1) ) ; CREATE TABLE t2 ( f3 varchar(1) ) ; CREATE TABLE t3 ( f1 int(11), f3 varchar(1) ) ; DROP TABLE IF EXISTS t4; SET SESSION optimizer_switch='in_to_exists=on,materialization=off'; SELECT * bzr version-info: revision-id: <email address hidden> |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-10-07 ] |
|
Re: Wrong result with in_to_exists=ON and NOT IN create table outer_sq (f1 char(1), f2 char(1)); create table inner_sq (f3 char(1), f4 char(1)); set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=off'; set @@optimizer_switch='in_to_exists=off,materialization=on,partial_match_rowid_merge=off,partial_match_table_scan=on'; set @@optimizer_switch='in_to_exists=on,materialization=off'; |
| Comment by Timour Katchaounov (Inactive) [ 2011-10-07 ] |
|
Re: Wrong result with in_to_exists=ON and NOT IN |
| Comment by Rasmus Johansson (Inactive) [ 2011-11-21 ] |
|
Launchpad bug id: 869036 |