Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 10.8
-
Component/s: Query
-
Labels:
-
Tests:Unit
-
Difficulty:Unknown
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Pull Request Status:Pull Request accepted
-
Similar issues:
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
-