Sorry for being a pain here, but I have a ton of support requests, and I can't follow up 10 times on an individual issue just for the issue to become slightly more clear. I'll update the process soon. The user group is good for open ended questions, but not for bug reports like this, which will not be accepted in the future. We really need complete reproducers almost every time, unless the issue is *very* obvious (which isn't the case here).
CREATE TABLE mcve.TABLE1 (
I ran code generation and tried this:
@Test
public void test() {
System.out.println(ctx.selectFrom(TABLE1).where(TABLE1.NAME.contains("x")));
}
No such cast was reproduced, instead I got:
select
"mcve"."table1"."id",
"mcve"."table1"."updated_at",
"mcve"."table1"."updated_by_bid",
"mcve"."table1"."legal_entity_id",
"mcve"."table1"."address",
"mcve"."table1"."name"
from "mcve"."table1"
where "mcve"."table1"."name" like (('%' || replace(
replace(
replace('x', '!', '!!'),
'%',
'!%'
),
'_',
'!_'
)) || '%') escape '!'
And now, I'm back to wondering what exactly it is that you're doing. While it is possible to continue going back and forth in this conversation here, trying to extract important bits to reproduce the problem, why not just provide a complete reproducer instead? In our issue template on github, we ask for MCVE's (Minimal, Complete, Verifiable Examples). These help drastically increase the efficiency of support requests, to the benefit of both.
Thanks for your understanding.