Bug #103633 The not like returned unexpected results

Submitted: 8 May 2021 15:06 Modified: 9 May 2021 23:01
Reporter: Guo Wenxuan Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: DML Severity:S2 (Serious)
Version:5.6/5.7/8.0 OS:Any
Assigned to: CPU Architecture:Any

[8 May 2021 15:06] Guo Wenxuan
Description:
select * from t0 where t0.col1 not like t0.col1;
I think the sql should not return any value.

mysql> select * from t0 where t0.col1 not like t0.col1;
+--------+
| col1   |
+--------+
| \9jM\M |
+--------+
1 row in set (0.12 sec)

This is not what I expected。

How to repeat:
create table t0(col1 varchar(255));
insert into t0 values("\\9jM\\M");
select * from t0 where t0.col1 not like t0.col1;
[9 May 2021 23:01] MySQL Verification Team
Thank you for the bug report.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.060 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.