.forUpdate()
.of(Tables.CLIENT.as("clients").NUM., Tables.ACCOUNT.as("accounts").ID)
.skipLocked()
.fetch();
The generated SQL will end with
FOR UPDATE OF "NUM", "ID" SKIP LOCKED
instead ofFOR UPDATE OF "clients"."NUM", "accounts"."ID" SKIP LOCKED
Is it possible to make JOOQ use table alias in the for update statement?
--
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.
For more options, visit https://groups.google.com/d/optout.
Yes, it is Oracle.By the way, is there a way to override JOOQ behavior for such situations in the future?
I expected that DSL.inline() will help and output as is, but Jooq tries to wrap it with "" anyway
- it would be great if I could fix it until bug or problem is fixed.
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/WDAsX3ySbeQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
DSLContext ctx = DSL.using(connection, SQLDialect.ORACLE, new Settings().withRenderNameStyle(RenderNameStyle.AS_IS);ctx.select(...).from(Tables.CLIENT.as("clients")).forUpdate().of(DSL.field(ctx.render(Tables.CLIENT.as("clients").NUM)),DSL.field(ctx.render(Tables.CLIENT.as("clients").ID))).fetch();
--
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.