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 3AC53536E7 for ; Tue, 26 Apr 2005 14:08:37 -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 55873-07 for ; Tue, 26 Apr 2005 17:08:32 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id AA930537FD for ; Tue, 26 Apr 2005 14:08:28 -0300 (ADT) Received: (qmail 12001 invoked from network); 26 Apr 2005 17:07:03 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 26 Apr 2005 17:07:03 -0000 Message-ID: <426E7586.4050707@fastcrypt.com> Date: Tue, 26 Apr 2005 13:08:22 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Youngstrom Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC Driver Modifies Calendar passed into setTimestamp() References: <81cf350605042609585cb0da18@mail.gmail.com> In-Reply-To: <81cf350605042609585cb0da18@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.028 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/164 X-Sequence-Number: 12771 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