[MDEV-3263] LP:669420 - Wrong result with non-equality ON clause and join_cache_level > 0 and "(flat, BNL join)" Created: 2010-11-01 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: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT COUNT(table1 .col_int_nokey) FROM t1 table1 JOIN ( t2 table2 JOIN t2 table3 ON table2 .col_int_key AND table3 .pk >= table2 .col_int_key ) ON table3 .col_varchar_key >= table2 .col_varchar_key ; returns different results when executed in maria-5.3 with join_cache_level = 0 and join_cache_level > 0; Also reproducible in maria-5.3-mwl128 with BKA = off. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-11-01 ] |
|
Re: Wrong result with non-equality ON clause and join_cache_level > 0 SET SESSION join_buffer_size = 102400; --disable_warnings CREATE TABLE t1 ( SET SESSION join_cache_level=0; SET SESSION join_cache_level=1; |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 669420 |