Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group