Re: Timestamps without time zone
От | Achilleas Mantzios |
---|---|
Тема | Re: Timestamps without time zone |
Дата | |
Msg-id | 200801091544.56199.achill@matrix.gatewaynet.com обсуждение исходный текст |
Ответ на | Re: Timestamps without time zone (Oliver Jowett <oliver@opencloud.com>) |
Ответы |
Re: Timestamps without time zone
Re: Timestamps without time zone Re: Timestamps without time zone |
Список | pgsql-jdbc |
Στις Wednesday 09 January 2008 15:05:24 ο/η Oliver Jowett έγραψε: > Achilleas Mantzios wrote: > >> Which driver version are you using? > > > > Its the 7.4.19 built from source. > > Ah, there is your problem then. That is a very old driver and had > problems with exactly the case you're trying to use (setTimestamp() with > a Calendar), amongst many other bugs. > > Can you try a recent driver and see if it fixes your problem? Looking at > CVS history it looks like 8.1 is the earliest driver with > timezone-related fixes, but I'd suggest you try the most recent stable > driver. > > Newer drivers will still talk to older servers, so you shouldn't need to > upgrade your server to test this. I tried with postgresql-8.2-507.jdbc3.jar, and it works like a charm! Not only that, but the getTimestamp() too! I was starting to question my night sleep quality, read old lenghty articles about java dates/timezones etc!! Thank you a lot! I didnt know jdbc newer versions were backward compatible with older servers. Just a comment: Why not merge from current changes/bugfixes to the JDBC? I mean 7.4 is old ok, but *officially supported* also! > > -O > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match -- Achilleas Mantzios
В списке pgsql-jdbc по дате отправления: