| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера