Re: round - timestamp bug - Mailing list pgsql-bugs

From Karel Zak
Subject Re: round - timestamp bug
Date
Msg-id Pine.LNX.3.96.1010126032534.859B-100000@ara.zf.jcu.cz
Whole thread Raw
In response to round - timestamp bug  (Gonzalo Arana <garana@sinectis.com.ar>)
List pgsql-bugs
> radius=# create table x (x timestamp);
> CREATE
> radius=# insert into x (x) values ('Tue 23 Jan 21:38:59.997 2001');
> INSERT 619178 1
> radius=# select * from x;
>                 x
> ---------------------------------
>  Tue 23 Jan 21:38:60.00 2001 ART
> (1 row)
>
> radius=# select to_char(x,'Dy DD Mon HH24:MI:SS YYYY') from x;
>          to_char
> --------------------------
>  Tue 23 Jan 21:38:59 2001
> (1 row)


 The to_char() is directly based on 'tm' struct and in current version
not use 'fsec' from timestamp2tm(). Hmm... I add it to my TODO.

 I not sure if I fix it for 7.1, may be as late as in 7.1.1 :-(

 It is not fatal bug it is almost feature that SS return directly sec :-)

                Karel

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: pl/pgsql documentation
Next
From: Darcy Buskermolen
Date:
Subject: Re: pl/pgsql documentation