pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Michael Youngstrom <youngm@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Driver Modifies Calendar passed into setTimestamp()
Date: Tue, 26 Apr 2005 13:08:22 -0400
Message-ID: <426E7586.4050707@fastcrypt.com> (raw)
In-Reply-To: <81cf350605042609585cb0da18@mail.gmail.com>
References: <81cf350605042609585cb0da18@mail.gmail.com>

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




view thread (4+ messages)  latest in thread

Message-ID: <426E7586.4050707@fastcrypt.com>
Permalink:  ../426E7586.4050707@fastcrypt.com/
Also on:    postgresql.org/message-id/426E7586.4050707@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, youngm@gmail.com
  Subject: Re: JDBC Driver Modifies Calendar passed into setTimestamp()
  In-Reply-To: <426E7586.4050707@fastcrypt.com>
  References: <81cf350605042609585cb0da18@mail.gmail.com> <426E7586.4050707@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox