Re: JDBC Driver Modifies Calendar passed into setTimestamp() - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: JDBC Driver Modifies Calendar passed into setTimestamp()
Date
Msg-id 426E7586.4050707@fastcrypt.com
Whole thread Raw
In response to JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate  (Michael Youngstrom <youngm@gmail.com>)
Responses Re: JDBC Driver Modifies Calendar passed into setTimestamp()
List pgsql-jdbc
I'd suggest that we shouldn't be modifying the calendar object either.

Without looking at the bug, I'd probably agree with him.

dave

Michael Youngstrom wrote:

>There appears to be a possible problem with PreparedStatement's
>
>setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
>
>The Calendar object passed into this method is modified by
>PostgreSQL's JDBC driver.  This causes problems with Hibernate.  I
>offered a solution for hibernate to clone the calendar before calling
>the method but Gavin King of Hibernate believes it's the JDBC driver's
>problem.  Here is the link to the hibernate bug discussed.
>
>http://opensource.atlassian.com/projects/hibernate/browse/HHH-405
>
>Mike
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>
>
>
>

--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561


pgsql-jdbc by date:

Previous
From: Michael Youngstrom
Date:
Subject: JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate
Next
From: Oliver Jowett
Date:
Subject: Re: JDBC Driver Modifies Calendar passed into setTimestamp()