[MDEV-3548] LP:869012 - Wrong result with semijoin + materialization + AND in WHERE 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: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT * returns no rows when executed with semijoin+materialization, even though the correct result is:
as those rows do match the WHERE predicate. Explain:
minimal optimizer switch:semijoin=on,materialization=on bzr version-info: test case: --source include/have_innodb.inc DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t3; SET SESSION optimizer_switch='semijoin=on,materialization=on'; |
| Comments |
| Comment by Sergei Petrunia [ 2011-10-11 ] |
|
Re: Wrong result with semijoin + materialization + AND in WHERE ALTER TABLE t2 engine=innodb; |
| Comment by Sergei Petrunia [ 2011-10-11 ] |
|
Re: Wrong result with semijoin + materialization + AND in WHERE revno: 3053.1.1
|
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 869012 |