Hello,
Just to be sure, you're explicitly inlining your bind variables, is that right?
That's an interesting feature, I wasn't aware of this. A similar issue may arise in MySQL, when people switch off the NO_BACKSLASH_ESCAPES flag, which means that the SQL standard quoting of apostrophes it''s is replaced by the non-standard backslash-quoting it\'s.
While handling of vendor-specific quoting in jOOQ is probably out of scope, there should be easy ways to configure and override these things if you want to inline your bind variables. One option for you is to implement your own bind values through a CustomField:
Another option is to implement a VisitListener that listens on rendering events of org.jooq.Param types:
You could intercept the rendering of "regular" bind variables and replace them with your own custom ones. This SPI is not well-documented yet, but we're here to help.
In the mean time, for jOOQ 3.4 or another future release, we'll think about how this can be resolved more thoroughly, through Settings or something similar. Congrats, you got a round issue number! Yay! :-)