Re: issues with Statement.getTimestamp(int, Calendar)

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Ravi Periasamy <ravitx12(at)yahoo(dot)com>, Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: issues with Statement.getTimestamp(int, Calendar)
Date: 2007-01-04 21:59:45
Message-ID: Pine.BSO.4.64.0701041655260.15822@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ken Johanson 2007-01-04 22:19:18 Re: Support for DatabaseMetadata: getCatalogName, getTableName,
Previous Message Kris Jurka 2007-01-04 21:33:58 Re: need to update TimestampUtils code