Re: Interval type - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Interval type
Date
Msg-id Pine.BSO.4.56.0412131710330.31457@leary.csoft.net
Whole thread Raw
In response to Interval type  (Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>)
List pgsql-jdbc

On Mon, 13 Dec 2004, Ricardo Vaz Mannrich wrote:

> How can I get an interval value with JDBC?
>

There is no corresponding Java type for an interval, so the best you can
do is ResultSet.getString().  The driver has a stub class
org.postgresql.util.PGInterval that will be returned by getObject().  It
would be nice if someone added a real implementation that could parse an
interval string and methods that returned the individual fields.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [BUGS] BUG #1347: Bulk Import stopps after a while ( 8.0.0.
Next
From: Oliver Jowett
Date:
Subject: Re: [BUGS] BUG #1347: Bulk Import stopps after a while (