Re: [JDBC] Timestamps without time zone
Óôéò 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
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Received on Wed Jan 9 08:47:58 2008
This archive was generated by hypermail 2.1.8
: Wed Jun 18 2008 - 23:42:28 EDT
|