[MDEV-3409] LP:669423 - Wrong results with " Range checked for each record" in maria-5.3 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 | ||
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
In maria 5.3, the following query: SELECT table2 .col_int_key field3 FROM t1 table1 JOIN t1 table2 ON table2 .col_int_key >= table1 .col_int_key AND table2 .pk < table1 .col_int_nokey ; returns no rows when the query plan contains "Range checked for each record". In maria-5.2 and for plans containing "join buffer", the query returns rows. So, this seems to be a regression outside of the join cache code. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-11-01 ] |
|
Re: Wrong results with " Range checked for each record" in maria-5.3 CREATE TABLE t1 ( SET SESSION join_cache_level = 7; SELECT table2 .col_int_key field3 FROM t1 table1 JOIN t1 table2 ON table2 .col_int_key >= table1 .col_int_key AND table2 .pk < table1 .col_int_nokey GROUP BY field3 ; SELECT table2 .col_int_key field3 FROM t1 table1 JOIN t1 table2 ON table2 .col_int_key >= table1 .col_int_key AND table2 .pk < table1 .col_int_nokey GROUP BY field3 LIMIT 1 ; |
| Comment by Igor Babaev [ 2010-11-02 ] |
|
Re: [Bug 669423] [NEW] Wrong results with " Range checked for each record" in maria-5.3 Regards, |
| Comment by Igor Babaev [ 2010-11-03 ] |
|
Re: Wrong results with " Range checked for each record" in maria-5.3 |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 669423 |