JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate

From: Michael Youngstrom <youngm(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate
Date: 2005-04-26 16:58:33
Message-ID: 81cf350605042609585cb0da18@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2005-04-26 17:08:22 Re: JDBC Driver Modifies Calendar passed into setTimestamp()
Previous Message Mauricio Hernández Durán 2005-04-26 16:12:15 ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution