Re: BUG #1630: Wrong conversion in to_date() function. See example.

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Ariel E. Carn /Elizabeth Sosa" <acarna@tarifar.com>
Cc: pgsql-bugs@postgresql.org
Date: 2005-04-27T14:45:42Z
Lists: pgsql-bugs
"Ariel E. Carn/Elizabeth Sosa" <acarna@tarifar.com> writes:
> PROD=# select to_date('2005-02-32', 'YYYY-MM-DD');
>   to_date
> ------------
>  2005-03-04
> (1 row)

I'm not convinced that's a bug --- most implementations of the Unix
mktime function will handle out-of-range day numbers like that.

			regards, tom lane