Hey Lukas,
On Tue, Feb 18, 2014 at 11:48 AM, Lukas Eder <[email protected]> wrote:
> This is something you should be doing directly on the connection pool /
> driver.
I found an option in the BoneCP API that does the trick:
config.setInitSQL("set lc_numeric = 'sv_SE.UTF-8';");
You still have to build a custom field to get Postgres to format
decimals according to the locale:
Field<String> localized = DSL.field("to_char({0},'999D99')",
String.class, SOME_FIELD);
But JOOQ handles that for you quite well.
BTW, nice like subtle point you make about being type safe when
handling locales :-)
On a different note, I'm wondering if I'm shooting myself in the foot
by switching locales - it's like using a non-US keyboard layout :-(
Cheers,
Ben
--
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.