Re: this date format thing. - Mailing list pgsql-general

From scott.marlowe
Subject Re: this date format thing.
Date
Msg-id Pine.LNX.4.33.0304031038410.19813-100000@css120.ihs.com
Whole thread Raw
In response to Re: this date format thing.  ("Peter Haworth" <pmh@edison.ioppublishing.com>)
List pgsql-general
On Thu, 3 Apr 2003, Peter Haworth wrote:

> On Wed, 2 Apr 2003 13:23:45 -0700 (MST), scott.marlowe wrote:
> > While situations where 04-02 would get put in when the user meant 02-04,
> > at least enough of the 02-13 cases would throw an error that the user
> > would know they had been doing something wrong along the way and would
> > hopefully go back and look at their data.
>
> You wish.
>
> jnlstats=> select version();
>                            version
> -------------------------------------------------------------
>  PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.96
> (1 row)
>
> jnlstats=> set datestyle='ISO';
> SET
> jnlstats=> select '2001-12-31'::date;
>     date
> ------------
>  2001-12-31
> (1 row)
>
> jnlstats=> select '2001-31-12'::date;
>     date
> ------------
>  2001-12-31
> (1 row)
>
> jnlstats=> select to_date('2001-31-12','yyyy-mm-dd');
>   to_date
> ------------
>  2003-07-14
> (1 row)

No, I was saying that if we fixed the parser that would happen.  I know
it's horribly broken right now.  Who hired Monty to work on our date
parsing routine anyway?  :-)


pgsql-general by date:

Previous
From: "Tamir Halperin"
Date:
Subject: Re: Rules, Triggers something more challenging
Next
From: "scott.marlowe"
Date:
Subject: Re: [Pgreplication-general] DBMIRROR and INSERT transactions