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

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 (view raw or flat)
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

pgsql-bugs by date

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

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