Skip site navigation (1) Skip section navigation (2)

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
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-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

pgsql-bugs by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group