IYYY: unexpected behaviour - Mailing list pgsql-bugs

From Zubkovsky, Sergey
Subject IYYY: unexpected behaviour
Date
Msg-id F5B7CF3F3C297B418A277AFC52CE7CF104C4FDA5@apt.transas.com
Whole thread Raw
Responses Re: IYYY: unexpected behaviour  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
Hi,

=20

SELECT to_char( '2006-01-01'::timestamp, 'IYYY-MM-DD' ) AS strange,

       to_char( '2006-01-02'::timestamp, 'IYYY-MM-DD' ),

       to_char( '2006-01-01'::timestamp, 'YYYY-MM-DD' );

=20

does produce unexpected result for column 'strange':

=20

  strange   |  to_char   |  to_char

------------+------------+------------

 2005-01-01 | 2006-01-02 | 2006-01-01

(1 row)

=20

Is this a bug?

=20

select version();

"PostgreSQL 8.2beta1 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC)
3.4.2 (mingw-special)"

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #2688: Building from source with PL/Python fails ("distutils not found")
Next
From: Peter Eisentraut
Date:
Subject: Re: IYYY: unexpected behaviour