Bug #118268 | The returned results of two queries with the same semantics are inconsistent. | ||
---|---|---|---|
Submitted: | 26 May 7:47 | Modified: | 27 May 3:30 |
Reporter: | SamonBing SamonBing | Email Updates: | |
Status: | Analyzing | 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 |
[26 May 7:47]
SamonBing SamonBing
[27 May 3:30]
SamonBing SamonBing
reduce query scene: first query(with wrong result) mysql> SELECT ALL t1.c0 AS ref0, t1.c1 AS ref1, t1.c2 AS ref2, t1.c3 AS ref3, t1.c4 AS ref4 FROM t1 WHERE ! ((GREATEST("", t1.c0, t1.c0, t1.c2)) OR (t1.c2)); Empty set, 1 warning (0.00 sec) second query(with right result) mysql> SELECT ALL t1.c0 AS ref0, t1.c1 AS ref1, t1.c2 AS ref2, t1.c3 AS ref3, t1.c4 AS ref4 FROM t1 WHERE ! ((GREATEST("", t1.c0, t1.c0, t1.c2)) ); +----------+------+------------+------+------+ | ref0 | ref1 | ref2 | ref3 | ref4 | +----------+------+------------+------+------+ | 0.164443 | NULL | 0000000000 | NULL | NULL | | 0.239807 | NULL | 0000000000 | NULL | NULL | | 0.218501 | NULL | 0000000000 | NULL | NULL | +----------+------+------------+------+------+ 3 rows in set, 1 warning (0.00 sec)