When I run this code: DSLContext.selectFrom(tableName).where(DSL.field("fieldName").contains("value")) -> the query is generated like this:
(1) Select * from tableName where fieldName like ('%' + replace(replace('"value*"'), '!', '!!'), '%', '!%'), '_', '!_' + '%') escape '!'
But the desired query is like this:
(2) Select * from tableName where Contains(fieldName, '"value*"')
The result of runnning query (1) is different from running query (2)
How do I use JOOQ to generate the query that looks like (2). Do you have any solutions for this?