Re: JDBC and Timestamps

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: JDBC and Timestamps
Дата
Msg-id 398CA382.390904BB@alumni.caltech.edu
обсуждение исходный текст
Ответ на RE: JDBC and Timestamps  (Peter Mount <petermount@it.maidstone.gov.uk>)
Список pgsql-interfaces
> ... I'm noticing problems with the timestamp fields. The JDBC
> driver when writing a Timestamp value to postgres is passing the value
> to the backend as a String in the following format "yyyy-mm-dd
> hh:mm:ss.fffffffff" <-- the last part .fffffffff is nanosecs.

Do you actually need nanosecond (or sub-microsecond) resolution? At the
moment, Postgres rounds internal values *and* truncates printed results
to avoid accumulating internal roundoff errors. But I did that pretty
conservatively, rather than actually testing to see if it could carry
more precision.

If you want to test with more precision, we could try some variations...
                 - Thomas


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

Предыдущее
От: Peter Mount
Дата:
Сообщение: RE: JDBC and Timestamps
Следующее
От: "Geoff Healey"
Дата:
Сообщение: removal from mailing list