Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
10.8
-
Unit
-
Unknown
-
N/A
-
N/A
-
Pull Request accepted
-
Description
Using a request with an explicit "escape" clause and a positional argument, such as:
where ( doc.fullName like ? escape '!' )
led to a ClassCastException because the argument is not transformed.
Here's a minimal script for reproducing the bug:
{{velocity}} #set ($query = $services.query.hql("where doc.fullName like :docName escape '!'")) #set ($docName = "%Bang!!%") #set ($query = $query.bindValue('docName').like($docName).query()) $query.execute() {{/velocity}}
Attachments
Issue Links
- is related to
-
XWIKI-14164 HTML and XAR export does not work well on documents with dots in their space or page names on MySQL
- Closed