Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not a Bug
-
Affects Version/s: 10.0.0, 5.5.28a, 5.3.11, 5.2.13, 5.1.66
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:WinXP
Description
If I specify file path using '\' (which is usually used on Windows) LOAD_FILE() doesn't find the file, while it works using '/'.
Create test.sql and issue:
SELECT LOAD_FILE('c:\test.sql'), LOAD_FILE('c:/test.sql');
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
In MySQL, backslash is used as mask character inside the string : http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
If you need a string with backslash, you'd need to duplicate it , e.g C:
test.sql