timestamp format bug

Поиск
Список
Период
Сортировка
От Roberts, Jon
Тема timestamp format bug
Дата
Msg-id 1A6E6D554222284AB25ABE3229A92762715521@nrtexcus702.int.asurion.com
обсуждение исходный текст
Ответы Re: timestamp format bug  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
select to_char(date, 'yyyy-mm-dd hh24:mi:ss.ms') as char,       date  from (select timestamp'2008-01-30 15:06:21.560'
asdate) sub 


"2008-01-30 15:06:21.560";"2008-01-30 15:06:21.56"

Why does the timestamp field truncate the 0 but when I show the
timestamp as a character in the default timestamp format, it does not
truncate the trailing zero?

These two fields should be consistent because they should be formatted
the same way.  I'm using versions 8.2.4 and 8.2.5 and both versions gave
me the same results.


Jon



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG: type of "xxxx" does not match that when preparing the plan
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: timestamp format bug