BUG #1630: Wrong conversion in to_date() function. See example. - Mailing list pgsql-bugs

From Ariel E. Carná/Elizabeth Sosa
Subject BUG #1630: Wrong conversion in to_date() function. See example.
Date
Msg-id 20050426224812.9F7DAF0C61@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #1630: Wrong conversion in to_date() function. See example.
Re: BUG #1630: Wrong conversion in to_date() function. See example.
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1630
Logged by:          Ariel E. Carná/Elizabeth Sosa
Email address:      acarna@tarifar.com
PostgreSQL version: 7.3.8/7.4.6
Operating system:   SuSE Linux
Description:        Wrong conversion in to_date() function. See example.
Details:

Case PgSQL 7.3.8/SuSE Linux 8.2 (i586)
======================================
PROD=# select to_date('2005-02-32', 'YYYY-MM-DD');
  to_date
------------
 2005-03-04
(1 row)

PROD=# select version();
                                                 version
----------------------------------------------------------------------------
-----------------------------
 PostgreSQL 7.3.8 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3
20030226 (prerelease) (SuSE Linux)
(1 row)


Case PgSQL 7.4.6/SuSE Linux 9.2
(i586)======================================
PROD=> select to_date('2005-02-32', 'YYYY-MM-DD');
  to_date
------------
 04-03-2005
(1 row)

PROD=> select version();
                                           version
----------------------------------------------------------------------------
-----------------
 PostgreSQL 7.4.6 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.4 (pre
3.3.5 20040809)
(1 row)

pgsql-bugs by date:

Previous
From: "boykov@ns"
Date:
Subject: msi installer on W2K server: error while install
Next
From: "boykov@ns"
Date:
Subject: msi installer on W2K server: error while install