Thanks for the quick reply! The workaround works for us. Cheers, Jörg
On Thursday, June 6, 2013 9:35:31 AM UTC+2, Lukas Eder wrote: > > > > > 2013/6/6 Jörg Schönfisch <[email protected] <javascript:>> > >> Hi, >> >> I'm getting an unexpected SQLDialectNotSupportedException if I run a >> simple test case only containing the following line: >> >> DSL.inline("Hello World!", String.class); >> >> In our application,this happens when we initialize some static constants. >> AFAICT the cause seems to be that DefaultDataType is not initialized as >> this happens only when its constructor is called and not in any of the >> static methods. >> >> Is this a bug or am I using the new API incorrectly? >> > > This would be a bug, thanks for reporting. I've registered #2506 for this: > https://github.com/jOOQ/jOOQ/issues/2506 > > I suspect that some internals are not yet properly initialised. As a > workaround, you could try explicitly loading the SQLDataType class, which > does the initialisation: > > https://github.com/jOOQ/jOOQ/blob/5aa77b382727c0fa57b210087bd691af34e65b12/jOOQ/src/main/java/org/jooq/impl/SQLDataType.java#L313 > > Cheers > Lukas > -- 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/groups/opt_out.
