Bug #79131 | Get negative FOUND_ROWS() for UNION stmt | ||
---|---|---|---|
Submitted: | 5 Nov 2015 5:34 | Modified: | 17 Nov 2015 16:03 |
Reporter: | Su Dylan | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.7.8, 5.7.9 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[5 Nov 2015 5:34]
Su Dylan
[5 Nov 2015 6:39]
Peter Laursen
On MySQL 5.6.13 I get: found_rows() -------------- 341
[5 Nov 2015 7:27]
MySQL Verification Team
Hello Su Dylan, Thank you for the report. Thanks, Umesh
[17 Nov 2015 16:03]
Paul DuBois
Noted in 5.7.11, 5.8.0 changelogs. FOUND_ROWS() could return a negative value if the preceding query was a UNION involving SQL_CALC_FOUND_ROWS and LIMIT ... OFFSET.