Re: Interval type

From: Kris Jurka <books(at)ejurka(dot)com>
To: Ricardo Vaz Mannrich <rvm_l1(at)silcom(dot)com(dot)br>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Interval type
Date: 2004-12-13 22:13:10
Message-ID: Pine.BSO.4.56.0412131710330.31457@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-12-13 22:50:23 Re: [JDBC] BUG #1347: Bulk Import stopps after a while (
Previous Message Kris Jurka 2004-12-13 22:06:00 Re: BUG #1347: Bulk Import stopps after a while ( 8.0.0.