Re: round - timestamp bug

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: round - timestamp bug
Дата
Msg-id Pine.LNX.3.96.1010126032534.859B-100000@ara.zf.jcu.cz
обсуждение исходный текст
Ответ на round - timestamp bug  (Gonzalo Arana <garana@sinectis.com.ar>)
Список 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 по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: pl/pgsql documentation
Следующее
От: Darcy Buskermolen
Дата:
Сообщение: Re: pl/pgsql documentation