Hi Brett,

Thank you very much for your report.

>From your description, it is difficult to assess what's going on here.
Ideally, if you think there's a bug like this, it would be helpful to have
an MCVE (Minimal, Complete, Verifiable Example) that helps understand 1)
what you really did, 2) what kinds of stack traces you're referring to,
where you're losing the connection to the database. Here's a template to
build such an MCVE: https://github.com/jOOQ/jOOQ-mcve

As a side note, there's a much better feature you could use to to support
vendor specific functionality, if you don't really need to support several
databases dialects. This is plain SQL templating:
https://www.jooq.org/doc/latest/manual/sql-building/plain-sql-templating/

I hope this helps,
Lukas

On Thu, May 16, 2019 at 5:49 AM <[email protected]> wrote:

> Hello,
>
> I've created a custom field, binding, and converter for working with
> PostGIS geometry columns.  This code works well on JOOQ 3.10.x, but when
> updating to 3.11.x I'm running to errors.  I followed the example here
> <http://www.jooq.org/doc/3.11/manual-single-page/#custom-queryparts>.  In
> JOOQ 3.11, the first time the custom field is evaluated the 
> delegate(Configuration
> configuration)gets called with the correct Postgres configuration for my
> DSLContext.  However, on subsequent calls a different default Configuration
> is passed in and my configuration.dialect().family() check fails.
> Looking up through the stack shows that the DSLContext is being replaced
> with a DefaultDSLContext that loses the connection to the database.  Have I
> missed a migration when upgrading to 3.11?  Thanks in advance for the
> assistance.
>
>
> Cheers,
> Brett
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/c23a4e9d-bf80-439a-aa57-fc00be5e9bb2%40googlegroups.com
> <https://groups.google.com/d/msgid/jooq-user/c23a4e9d-bf80-439a-aa57-fc00be5e9bb2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO6jVYdscofGvz9Csv1R3QSWXAS_J7qCDO1R_NTMr9UPug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to