How do you properly escape a '/' forward slash in a JPQL query string?
If I do this:
LOCATE('/', REVERSE( ...
I get:
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
However, if I do this:
LOCATE('\\', REVERSE( ...
Everything is fine.
So, how do I include the forward slash?
EDIT: I've already tried the following and they don't work:
'\\/'
'//'
CHAR(47)
ESCAPE '/'