Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

Next:From: Darcy BuskermolenDate: 2001-01-26 03:13:06
Subject: Re: pl/pgsql documentation
Previous:From: pgsql-bugsDate: 2001-01-26 00:17:23
Subject: pl/pgsql documentation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group