Bug #88863 | COUNT(*) can sometimes return bogus value | ||
---|---|---|---|
Submitted: | 11 Dec 2017 17:24 | Modified: | 12 Dec 2017 9:37 |
Reporter: | Vasil Dimov | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.6.38, 5.7.20 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | count(*) |
[11 Dec 2017 17:24]
Vasil Dimov
[11 Dec 2017 17:39]
Vasil Dimov
An archive that contains the files to reproduce is uploaded to sftp.oracle.com: $ sftp -oPort=2021 -oUser=vd@freebsd.org -oKexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256 -oHostKeyAlgorithms=+ssh-dss sftp.oracle.com:/support/incoming ... sftp> put mysql-bug-data-88863.tar Uploading mysql-bug-data-88863.tar to //support/incoming/mysql-bug-data-88863.tar mysql-bug-data-88863.tar 100% 7765KB 349.5KB/s 00:22 sftp>
[12 Dec 2017 9:37]
MySQL Verification Team
Hello Vasil, Thank you for the report and test case. Observed that 5.6.39 and 5.7.20 are affected. Thanks, Umesh
[12 Dec 2017 9:38]
MySQL Verification Team
test results
Attachment: 88863.results (application/octet-stream, text), 5.34 KiB.
[17 Aug 2019 9:16]
Fernando Guillen
I can confirm this is happening in Engine version: 5.7.23 The query I am running is SELECT COUNT(*) FROM `publisher_offer_clicks` WHERE `publisher_offer_clicks`.`publisher_offer_id` = 18972 AND (created_at > '2019-01-01')