2017-05-15 20:49 GMT+02:00 Max Kremer <[email protected]>: > Ok that makes total sense. It's clear now why that wasn't working as > expected. > > So if I understand correctly, when I need a PLAIN SQL String that contains > a full query with everything inlined I need to first build my query parts > and then use the right dialect to produce the complete by calling DSL.sql > and wrapping that in DSLContext.render? > > Like so: > > > DSLContext create = DSL.using(SQLDialect.POSTGRES_9_5); > > String sqlString = create.renderInlined(DSL.sql("SELECT * FROM FOO WHERE > {0} AND {1}", condition1, condition2)); > > Yes, that example is the correct way to go.
-- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
