Received: from p1.selectacast.net (p1.selectacast.net [206.41.1.251]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0UMNUq57767 for ; Tue, 30 Jan 2001 17:23:30 -0500 (EST) (envelope-from jks@selectacast.net) Received: from selectacast.net (IDENT:jks@d1 [209.219.91.66]) by p1.selectacast.net (8.9.3/8.9.3) with ESMTP id RAA15354; Tue, 30 Jan 2001 17:23:18 -0500 Message-ID: <3A773ED6.8B66A48B@selectacast.net> Date: Tue, 30 Jan 2001 17:23:18 -0500 From: Joseph Shraibman Organization: Xtenit, Inc. http://www.xtenit.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: Peter T Mount CC: Michael Stephenson , PostgreSQL jdbc list Subject: Re: Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems References: <3A760360.DA37F1C@selectacast.net> <980862184.3a76c4e8bf0e6@webmail.retep.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/99 X-Sequence-Number: 104 Peter T Mount wrote: > > Quoting Joseph Shraibman : > > > Michael Stephenson wrote: > > > > > > On Wed, 24 Jan 2001, Joseph Shraibman wrote: > > > > > > > > What was the conclusion of this discussion? Do we leave it > > static? > > > > > > > > No, it cannot be static. > > > > > > As I see it we have three possible solutions to this problems. > > > > > > a) Just stop it being static, each PreparedStatement gets a new > > > instantiation (I think this is what we've done for now). > > > b) static ThreadLocal, each Thread gets one instantiation. > > > > But I think some people are still using java 1.1.x and they don't have > > ThreadLocal. > > True, except the 1.1 & 1.2 implementations are different packages, so you > simply don't do ThreadLocal in 1.1.x > Umm, not exactly. You can use jdbc 2 with java 1.1.x by downloading a seperate package. I'm not sure how many people do this, but I imagine there are a few. -- Joseph Shraibman jks@selectacast.net Increase signal to noise ratio. http://www.targabot.com