Hi,Can someone point me toward how to conver this select to JOOQ?SELECT`foo`,IF(`d_fk` > 0, 'Yes', 'No') AS 'Active',`bar`FROM TABLEATABLE_A has gone through the code generation.Result<?> result = context.select().TABLEA.FOO,????, TABLEA.BAR).fetch();
Also I have a SQL statement that is expecting a bind so it's:
SELECT `foo` FROM TABLEB WHERE id=?How do I bind a var, and execute this query? Should I rewrite this as a JOOQ select (it's very very long and complex, and it only only has the one bind variable).
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Wei,No, we currently have no plans of supporting "IF". The main reason is that we can't call the method "if" in Java, which is a reserved word. Using any other word might make it tricky for a user to find the method.If you have any suggestions, please do let us know. Rest assured that the mentioned workarounds still work, though.Cheers,Lukas
2016-09-12 20:50 GMT+02:00 <david....@gmail.com>:
Hi Lukas,
Is the if feature supported now? If so, since which major version?
Thanks,
Wei
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
Thanks,
Lukas
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/46ab1125-b18f-4b31-a3d6-b9016d767ba8%40googlegroups.com.