[MDEV-3131] LP:817371 - Wrong result with NULL >= ALL (<empty result>) in maria-5.3 Created: 2011-07-28 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: | Oleksandr Byelkin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Not repeatable in maria-5.2,mysql-5.5. The following WHERE condition: t2.c >= ALL ( SELECT c FROM t1 ) seems to evaluate to TRUE even though t1 is empty. explain:
test case: CREATE TABLE t1 ( c int) ; CREATE TABLE t2 ( d int, c int) ; CREATE TABLE t3 ( a int NOT NULL , c int) ; CREATE TABLE t4 ( a int NOT NULL , b int, c int) ; SELECT t4.c, t2.c returns (NULL,NULL) even though it should return an empty set since neither side of the OR predicate in the WHERE is TRUE. 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: bzr version-info |
| Comments |
| Comment by Oleksandr Byelkin [ 2011-07-28 ] |
|
Re: Wrong result with NULL >= ALL (<empty result>) in maria-5.3 |
| Comment by Oleksandr Byelkin [ 2011-07-28 ] |
|
Re: Wrong result with NULL >= ALL (<empty result>) in maria-5.3 |
| Comment by Oleksandr Byelkin [ 2011-07-28 ] |
|
Re: Wrong result with NULL >= ALL (<empty result>) in maria-5.3 |
| Comment by Rasmus Johansson (Inactive) [ 2011-07-28 ] |
|
Launchpad bug id: 817371 |
| Comment by Philip Stoev (Inactive) [ 2011-07-28 ] |
|
Re: Wrong result with NULL >= ALL (<empty result>) in maria-5.3 |