Home > Archive > PostgreSQL JDBC > April 2005 > JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2005-04-26, 1:23 pm

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/pro.../browse/HHH-405

Mike

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com