Re: [BUGS] wrong behavior using to_char()

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Jorge Godoy <jgodoy(at)gmail(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] wrong behavior using to_char()
Date: 2007-02-13 02:01:19
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-bugs pgsql-patches

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Ultimately, the result was that glibc was wrong in its locale settings,
> > and there was a suggestion to use defaults only when using the C locale.
> > However, I am worried there are too many locales in the field that only
> > define some of the locale setting, so doing defaults only for the C
> > locale might not work.
> > The minimal patch I wrote (attached), suppresses the default for the
> > thousands separator only if is is the same as the decimal separator. I
> > think this is the only area where the default could potentially match
> > the locale setting for another field.
> Should we really go introducing strange misbehaviors into our code to
> work around an admitted glibc bug?

Seems there is no interest in handling this specific case, so I withdraw
the patch, but I have added a comment with a date in case we need to
revisit it.

Bruce Momjian <bruce(at)momjian(dot)us>

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Floyd Shackelford 2007-02-13 03:53:52 BUG #2997: parse error: setObject("2004-August-15",java.sql.Types.DATE)
Previous Message Tom Lane 2007-02-13 00:00:34 Re: BUG #2994: avg() calculates wrong on Interval-type

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Smith 2007-02-13 06:08:04 Re: New features for pgbench
Previous Message Greg Smith 2007-02-13 01:12:34 Re: New features for pgbench