[MDEV-6221] SQL_CALC_FOUND_ROWS yields wrong result again Created: 2014-05-09 Updated: 2014-11-27 Resolved: 2014-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | 10.0.12 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Serg G. Brester | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Debian 7-wheezy, (and jessie) |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
So issues Challenge Nr. 1With "left join" "order by" and "sub criteria" over first table (not really will be affected - cause always False, but nevertheless as a result should traverse over whole table).
Result:
Challenge Nr. 2SQL statement below might possibly help with troubleshooting.
Result:
|
| Comments |
| Comment by Serg G. Brester [ 2014-05-09 ] | ||||||||||||||||||
|
Thanks elenst for clarifying this issue. In addition, she had verified it in previously fixed versions, see comment-49514: | ||||||||||||||||||
| Comment by Serg G. Brester [ 2014-05-09 ] | ||||||||||||||||||
|
I think the next time this bug will be fixed, I volunteer to write a new test case(s) to coverage this сode to close this theme forever. | ||||||||||||||||||
| Comment by Elena Stepanova [ 2014-05-09 ] | ||||||||||||||||||
|
Hi Serg, One note on a part of the test case "Challenge Nr. 1":
It works with InnoDB, but still fails with MyISAM (returns 3). Reappearance of the bug was caused by our operational inaccuracy –
caused a regression which was only visible on the test case from | ||||||||||||||||||
| Comment by Serg G. Brester [ 2014-05-09 ] | ||||||||||||||||||
It's not like for me - I have tested with the MyISAM, Aria and InnoDB - same wrong result on version "10.0.10-MariaDB-1~wheezy-log": returns 3. | ||||||||||||||||||
| Comment by Elena Stepanova [ 2014-05-09 ] | ||||||||||||||||||
|
Actually, as your comment in the test case suggests, this particular fragment returns a correct result to you.
I can see it too, with InnoDB. But with MyISAM and with Aria it returns 3. It doesn't change the meaning of the report, just something to take into account (probably add the regression test cases both for InnoDB and MyISAM). |