Bug #112912 | Parsing a string To BIT type got a wrong result | ||
---|---|---|---|
Submitted: | 1 Nov 2023 8:45 | Modified: | 1 Nov 2023 14:12 |
Reporter: | Alex Wong | 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 |
[1 Nov 2023 8:45]
Alex Wong
[1 Nov 2023 14:12]
MySQL Verification Team
HI Mr. Wong, Thank you for your bug report. Here is what we have got as the output from your test case, without hash index: SELECT * FROM t0; ------------------- c0 \0 You are inserting empty string into a BIT column and you got the only bit you inserted SELECT t0.c0 FROM t0 WHERE ("a0101") IN (t0.c0); ---------------------------------------------------- c0 \0 The above is wrong. SELECT ("a0101") IN (t0.c0) from t0; 1 The above is correct, since there is a row in the table. With hash inded , the second query returns empty result which is correct. So, this is a verified bug, but of very low severity.