| От | Philippe Marschall |
|---|---|
| Тема | Re: TimestampUtils.toJavaSecs / toPgSecs seem dubious |
| Дата | |
| Msg-id | 58b6cc1f-26ba-9689-86bd-e63134c95418@netcetera.com обсуждение |
| Ответ на | TimestampUtils.toJavaSecs / toPgSecs seem dubious (Chapman Flack <chap@anastigmatix.net>) |
| Список | pgsql-jdbc |
On 26.07.19 14:59, Chapman Flack wrote: > pgJDBC's toJavaSecs() and toPgSecs() methods contain some dubious > adjustments, apparently there in an attempt to make the java.sql > mapping less weird. But it really succeeds only in smearing the weird > around so it's not where it belongs, and some even gets on the java.time > mapping, which ought to be free of weird. So, I had a look at this. I can only reproduce it with the binary protocol, not with the text protocol. So as a short term work around switching to the text protocol should work. java.time inherits the weird because it also goes through toJavaSecs. I am working on a patch but it needs more tests and polish. I hope I'll be able to submit a bug and PR shortly. Cheers Philippe
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера