Re: round - timestamp bug

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Gonzalo Arana <garana(at)sinectis(dot)com(dot)ar>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: round - timestamp bug
Date: 2001-01-26 02:31:55
Message-ID: Pine.LNX.3.96.1010126032534.859B-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Darcy Buskermolen 2001-01-26 03:13:06 Re: pl/pgsql documentation
Previous Message pgsql-bugs 2001-01-26 00:17:23 pl/pgsql documentation