Re: Bug #607: to_date() function bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nurlan(at)otdyh(dot)kz, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #607: to_date() function bug
Date: 2002-03-04 21:54:17
Message-ID: 8182.1015278857@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> otdyh=# select to_date(20020200,'YYYYMMDD');
> to_date
> ------------
> 2002-02-01

> must be 2002-01-31 !!
> 00 day - is the last day of the previous month!

I don't think so. If anything, this should raise an error.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tatsuo Ishii 2002-03-05 01:01:51 Re: Encoding Problem?
Previous Message Stephan Szabo 2002-03-04 21:00:32 Re: BUG: bigint and indexes ?