[MDEV-2486] LP:813489 - Wrong result with outer join + nested subquery with ALL Created: 2011-07-20 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 | ||
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The query below returns no rows in maria-5.3 even though the subquery returns an empty result and therefore the ALL predicate should evaluate to TRUE. Not influenced by optimizer_switches. Not repeatable with maria-5.2, mysql-5.1. Also please check the = ALL form, as it appears to return an incorrect result as well . test case: CREATE TABLE t1 (a int); CREATE TABLE t2 ( b int, KEY (b) ); CREATE TABLE t3 ( c int) ; CREATE TABLE t4 (d int) ; SELECT * FROM t1 explain:
expected result: ------
------
------ optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=off,derived_merge=off,derived_with_keys=off,firstmatch=off,loosescan=off,materialization=off,in_to_exists=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=off,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on bzr version-info |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-07-21 ] |
|
Launchpad bug id: 813489 |
| Comment by Timour Katchaounov (Inactive) [ 2011-07-21 ] |
|
Re: Wrong result with outer join + nested subquery with ALL revision-id: igor@askmonty.org-20110721074337-qeijtrwilgdmtlsv |