JDBC and intervals - Mailing list pgsql-jdbc

From Pablo Velasquez Rivas
Subject JDBC and intervals
Date
Msg-id 4027F77F.4000902@its.co.cr
Whole thread Raw
Responses Re: JDBC and intervals
List pgsql-jdbc
Hi.

I'm trying to get an interval from a postgresql query.

I was using jdbc for postgresql 7.3.x, and my query was:

ResultSet.executeQuery("SELECT (final_date - initial_date) FROM some_table") ;

When I did something like this:
System.out.println(resultSet.getObject(1)),  , I got the message: " Error = No class found for interval"

So, I tried upgrating to postgresql 7.4.x, and if I do
System.out.println(resultSet.getObject(1)) ,  I get : null.

So, is there a way to get an interval from a postgresql query ?, or am I doing something wrong ??


Thanks for any help.
==                                 ==
   Pablo A. Velasquez Rivas
Computer Science Engineer
==                                 ==

pgsql-jdbc by date:

Previous
From: Tom Ansley
Date:
Subject: unsubscribe
Next
From: Oliver Jowett
Date:
Subject: Re: Use of instanceOf