Bug #81990 | LIKE condition with multiple backslashes, must add extra \ at the end | ||
---|---|---|---|
Submitted: | 23 Jun 2016 18:51 | Modified: | 24 Dec 2019 13:49 |
Reporter: | Petras Ramanauskas | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | 5.6.31, 5.7.13 |
[23 Jun 2016 18:51]
Petras Ramanauskas
[23 Jun 2016 18:53]
Petras Ramanauskas
http://stackoverflow.com/questions/37089966/mysql-like-condition-with-multiple-backslashes...
[23 Jun 2016 20:02]
MySQL Verification Team
Please provide the complete test case here (create table, insert data, query actual result and expected one). Also fill the version field. Thanks.
[24 Jun 2016 6:17]
Petras Ramanauskas
Version doesn't matter - all of them. CREATE TABLE `people` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` VARCHAR(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE = InnoDB; insert into people(id, name) values('1','\\\\\\'); select * from people where name like '%\\\\\\\\\\\\%'; NO RESULT. select * from people where name like '%\\\\\\\\\\\\\%'; YES RESULT.
[25 Jun 2016 9:29]
MySQL Verification Team
Thank you for the requested details. Observed this with 5.6.31/5.7.13. Thanks, Umesh
[24 Dec 2019 13:49]
Roy Lyseng
Posted by developer: Fixed in 8.0.18