Bug #6122 SELECT * FROM paths WHERE pathname LIKE 'c:\\%'
| Submitted: | 16 Oct 2004 1:04 | Modified: | 16 Oct 2004 5:50 |
|---|---|---|---|
| Reporter: | Spencer Fairbairn | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 4.0.15 and 4.1.5 | OS: | Windows (windows 2000, XP) |
| Assigned to: | CPU Architecture: | Any |
[16 Oct 2004 1:04]
Spencer Fairbairn
[16 Oct 2004 5:50]
Alexander Keremidarski
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: \ is escaping character in both MySQL server parser and client command line parser. It has to be escaped twice: When writing 'c:\\%' into the client the string sent to the server becomes 'c:\%' which of course will match only exact 'c:%' . Being escaped % is not a wildcard anymore With 'c:\\\%' client sends 'c:\\%' to the server which is exactly what is needed to match strings with prefix `c:\'
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 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.