How to check if a WHERE clause condition is VALID or not using JOOQ?

Viewed 733

Lets say we have a SQL fragment like below:

String condition = "field_name > 10 asd field_name1 <= 20"

Shouldn't the following line throw an error instead of accepting it?

query.addConditions(DSL.condition(condition));

Is there a way to VALIDATE the condition grammar using JOOQ? Furthermore unlike an addLimit, the values are not replaced with ?, why is that?

1 Answers
Related