Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 624D99FA39B for ; Thu, 4 Jan 2007 18:00:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 12197-02 for ; Thu, 4 Jan 2007 17:59:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id 6C9E99FA0EF for ; Thu, 4 Jan 2007 17:59:54 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id 6C384F1D9; Thu, 4 Jan 2007 16:59:45 -0500 (EST) Date: Thu, 4 Jan 2007 16:59:45 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Oliver Jowett cc: Ravi Periasamy , Dave Cramer , pgsql-jdbc@postgresql.org Subject: Re: issues with Statement.getTimestamp(int, Calendar) In-Reply-To: <457FF1E3.8020207@opencloud.com> Message-ID: References: <752250.99365.qm@web60525.mail.yahoo.com> <457FF1E3.8020207@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/30 X-Sequence-Number: 16395 On Wed, 13 Dec 2006, Oliver Jowett wrote: > Ravi Periasamy wrote: > >> I suspect the AbstractJdbc2Statement.changetime() >> method. > > Yeah, that code looks pretty broken to me, it has completely the wrong > end of the stick about what it should be doing with the provided > calendar, AFAICS. > > Dave, why doesn't the out-parameter stuff do timestamp conversion by > delegating to the same code as the ResultSet code uses? That does all > the hard stuff for you.. > I've rewritten this code to farm out the work to TimestampUtils and applied it to the 8.1, 8.2 and 8.3dev branches. Kris Jurka