Re: [GENERAL] ISO week dates - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [GENERAL] ISO week dates
Date
Msg-id 200702142003.l1EK3b607865@momjian.us
Whole thread Raw
In response to Re: [GENERAL] ISO week dates  ("Brendan Jurd" <direvus@gmail.com>)
Responses Re: [GENERAL] ISO week dates  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Brendan Jurd wrote:
> On 2/15/07, Bruce Momjian <bruce@momjian.us> wrote:
> > Tom Lane wrote:
> > > Bruce Momjian <bruce@momjian.us> writes:
> > > > Peter Eisentraut wrote:
> > > >> I don't think Oracle even has that.  But personally I'd like to see
> > > >> errors for invalid pattern combinations.
> > >
> > > > What do we do with other invalid pattern combinations in to_char() now?
> > >
> > > Mostly, we return bogus results :-(.  The formatting.c code in general
> > > doesn't seem very robust.
> >
> > Yep, seems every release I am in there cleaning up some mistake repeated
> > multiple times in the code.  It needs a good cleaning.
>
> I'm happy to volunteer to do something about the invalid field
> combinations, but I suspect an overhaul of formatting.c is more than I
> can currently chew.  I figure it would be a bit misguided of me to put
> together a patch for invalid field combinations if somebody is about
> to do a rewrite of much of the code?

Yea, I was just throwing out a note that someday if someone has time,
that file need a good sweeping.

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

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

pgsql-patches by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: [GENERAL] ISO week dates
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] ISO week dates