Bug #73797 | problems with escaping with \ and ' combined in a string. | ||
---|---|---|---|
Submitted: | 3 Sep 2014 20:10 | Modified: | 4 Sep 2014 8:08 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | and - from 5.0 to 5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 Sep 2014 20:10]
Peter Laursen
[4 Sep 2014 8:08]
Peter Laursen
OK .. my mistake. The test case with stringliterals does not describe my problem properly. All those will work as expected (using different ways to escape " ' " and quoting using "doublequotes" and "singlequotes'. SELECT "a\\'b " LIKE "a\\\\'b "; SELECT "a\\'b " LIKE 'a\\\\''b '; SELECT "a\\'b " LIKE "a\\\\'b "; SELECT "a\\'b " LIKE "a\\\\\'b "; SELECT 'a\\\'b ' LIKE "a\\\\'b "; SELECT 'a\\''b ' LIKE "a\\\\'b "; -- etc. all return "1". A full cartesian product of all possibilities would likely create a larger list! So closing!