This is a bug in jOOQ 3.3.1 and previous versions, thanks for reporting. I have created issue #3191 to fix this as soon as possible (due for jOOQ 3.4.0, 3.3.3, 3.2.6). It appears as though the keepStatement()
semantics is not correctly implemented when using a DataSource
with jOOQ.
In the mean time, I suggest you don't use this feature.