Bug #118835 | A query statement that returns 0/FALSE in the having clause, the returned result is not null. | ||
---|---|---|---|
Submitted: | 14 Aug 2:56 | Modified: | 19 Aug 0:13 |
Reporter: | Alice Alice | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.41 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[14 Aug 2:56]
Alice Alice
[18 Aug 16:39]
MySQL Verification Team
Thank you for report. Verified as described. mysql> SELECT t0.c0, ((NULLIF(-430099078, AVG(SCHEMA()))) IS NULL) FROM t0 WHERE t0.c0 GROUP BY t0.c0 HAVING ((NULLIF(-430099078, AVG(SCHEMA()))) IS NULL); +------------+-----------------------------------------------+ | c0 | ((NULLIF(-430099078, AVG(SCHEMA()))) IS NULL) | +------------+-----------------------------------------------+ | -589456629 | 0 | | -503198307 | 0 | | 662364767 | 0 | +------------+-----------------------------------------------+ 3 rows in set, 3 warnings (0.001 sec) mysql>