Hi Ariel,
Thanks for reporting this. This is indeed a bug because the getSQL() and getBindValues() methods should work together for use-cases where jOOQ is used to generate but not to execute SQL. I have registered #3131 for this:
As this will incompatibly change behaviour, I think it will be better not to merge this fix to 3.2 and 3.3 minor releases.
In the mean time, as a workaround, you could implement a VisitListener or a BindContext to extract bind values from your queries. Note that the BindContext SPI is an internal SPI, so workarounds built upon this SPI might break in future releases.
Let me know if you have any questions regarding the above SPIs.
Another, perhaps a bit simpler workaround is to use Query.getParams()
... and then retain only those Params that have the inline flag set to false:
Cheers
Lukas