Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the problem is backslashes in LIKE expressions on mysql
- when the parameter is in a WHERE x = ? it needs to be 'Contain\\ABackslash'
- but when its WHERE x LIKE ? the parameter needs to be 'Contain\\\\ABackslash'
- so mysql expectes 8 \ instead of the given 4 when representing a backslash in a LIKE expression
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement