Bug #111397 | 表达式进行<=>比较并将结果进行与操作,执行结果错误 | ||
---|---|---|---|
Submitted: | 13 Jun 2023 13:32 | Modified: | 13 Jun 2023 13:58 |
Reporter: | yijun xie | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | <=>执行结果错误 |
[13 Jun 2023 13:32]
yijun xie
[13 Jun 2023 13:58]
MySQL Verification Team
Hi Mr. xie, Thank you for your bug report. This is indeed a bug. This is a result we have got: +--------------------+ | ================== | +--------------------+ | ================== | +--------------------+ +------------+ | date_col | +------------+ | 1998-11-03 | +------------+ That means that it is a bug , because HAVING condition has two comparisons, which are evaluated by logical AND expression. The result, however, is returned as if it was OR condition. Usage of '<=>' comparator is irrelevant, since there are no NULLs in the values. Verified as reported.
[14 Jun 2023 8:30]
Tor Didriksen
Posted by developer: google translate says: The expression is compared with <=> and the result is ANDed, and the execution result is wrong