X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 21F4853802 for ; Tue, 26 Apr 2005 13:58:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54892-01 for ; Tue, 26 Apr 2005 16:58:37 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr1.postgresql.org (Postfix) with ESMTP id 375015380B for ; Tue, 26 Apr 2005 13:58:36 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so998wri for ; Tue, 26 Apr 2005 09:58:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D3vxFTNVowLebWDnlR1+HwSeCGd/Fs6NRjlhe7pckPcnyEwykW12bWlzZdheu1NUbNyjMwlk3J8ciIpiSDgXvD6eg0U5KX1jXRivbkydgInWDF+J8efVycacbVbryzP80UJS849HXRBJW71TNRg1t3a150l1AInTCNMcYN23vak= Received: by 10.54.112.19 with SMTP id k19mr778309wrc; Tue, 26 Apr 2005 09:58:33 -0700 (PDT) Received: by 10.54.33.80 with HTTP; Tue, 26 Apr 2005 09:58:33 -0700 (PDT) Message-ID: <81cf350605042609585cb0da18@mail.gmail.com> Date: Tue, 26 Apr 2005 10:58:33 -0600 From: Michael Youngstrom Reply-To: Michael Youngstrom To: pgsql-jdbc@postgresql.org Subject: JDBC Driver Modifies Calendar passed into setTimestamp() creates problem with Hibernate Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200504/163 X-Sequence-Number: 12770 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