Closed
Description
I using below version:
- mybatis-thymeleaf v 1.0.2
- thymeleaf 3.0.11
- springboot 2.3.0
- mybatis 3.5.5
- Java 11
When using Expression Function in mybatis thymeleaf.
Example:
SELECT * FROM area WHERE NAME LIKE 'Tara%' /*[(${#likes.escapeClause()})]*/ ORDER BY ID
Output result:
SELECT * FROM area WHERE NAME LIKE 'Tara%' escape '\'
Expected result:
SELECT * FROM area WHERE NAME LIKE 'Tara%' escape '\' ORDER BY ID
ORDER BY ID will be removed, it will be replace all character before comma in same line make sql incorrect.
If we format SQL by line -> SQL will be correct.
Example:
SELECT * FROM area
WHERE
NAME LIKE 'Tara%' /*[(${#likes.escapeClause()})]*/
ORDER BY ID
Metadata
Metadata
Assignees
Labels
No labels