Re: Re: [GENERAL] FM format modifier does not remove leading zero from year

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Guy Rouillier <guyr-ml1(at)burntmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [GENERAL] FM format modifier does not remove leading zero from year
Date: 2010-02-08 22:44:13
Message-ID: 201002082244.o18MiDx19877@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > What's the point of not following Oracle here, since this is solely an
> > Oracle compatibility function?
>
> Changing FM's behavior like that will break approximately every user
> of to_char() ...

I would love to know why we are finding out about this incompatibility
only in 2010, years after we implemented this. Is no one porting
multi-specification "FM" to_char() strings from Oracle to PostgreSQL?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2010-02-08 23:05:05 Re: turning a tsvector without position in a weighted tsvector
Previous Message BlackMage 2010-02-08 22:35:06 Help Join Tables

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-02-08 23:09:19 Re: Writeable CTEs and empty relations
Previous Message Magnus Hagander 2010-02-08 22:33:46 Re: [PATCH] "could not reattach to shared memory" on Windows