Bug #118838 | A query containing a where subclause returnning true, the query result is empty. | ||
---|---|---|---|
Submitted: | 14 Aug 3:10 | Modified: | 18 Aug 15:21 |
Reporter: | Alice Alice | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0.41 | OS: | Any |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[14 Aug 3:10]
Alice Alice
[18 Aug 15:21]
MySQL Verification Team
Hi, Please upgrade mysql> SELECT t0.c1,t1.c2,(t0.c1) >= (t1.c2),(NOT ((t0.c1) >= (t1.c2))) FROM t1, t0; +-------------+-------+--------------------+----------------------------+ | c1 | c2 | (t0.c1) >= (t1.c2) | (NOT ((t0.c1) >= (t1.c2))) | +-------------+-------+--------------------+----------------------------+ | -1496950000 | 1e500 | 0 | 1 | | 0.485855 | 1e500 | 0 | 1 | +-------------+-------+--------------------+----------------------------+ 2 rows in set, 4 warnings (0.001 sec) mysql> SELECT t0.c1,t1.c2 FROM t1, t0 WHERE (NOT ((t0.c1) >= (t1.c2))); +-------------+-------+ | c1 | c2 | +-------------+-------+ | -1496950000 | 1e500 | | 0.485855 | 1e500 | +-------------+-------+ 2 rows in set, 4 warnings (0.001 sec) mysql> show warnings; +---------+------+-------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: '1e500' | | Warning | 1292 | Truncated incorrect DOUBLE value: '1e500' | | Warning | 1292 | Truncated incorrect DOUBLE value: '1e500' | | Warning | 1292 | Truncated incorrect DOUBLE value: '1e500' | +---------+------+-------------------------------------------+ 4 rows in set (0.000 sec)