Re: JDBC ResultSet.getObject() fails for type INTERVAL - Mailing list pgsql-bugs

From Peter Mount
Subject Re: JDBC ResultSet.getObject() fails for type INTERVAL
Date
Msg-id 5.0.2.1.0.20010203112356.009f5c20@mail.retep.org.uk
Whole thread Raw
In response to JDBC ResultSet.getObject() fails for type INTERVAL  (pgsql-bugs@postgresql.org)
List pgsql-bugs
At 00:01 02/02/01 -0500, pgsql-bugs@postgresql.org wrote:
>John Lemcke (jlemcke@netspace.net.au) reports a bug with a severity of 2
>The lower the number the more severe it is.
>
>Short Description
>JDBC ResultSet.getObject() fails for type INTERVAL
>
>Long Description
>Trying to retrieve an INTERVAL from a ResultSet causes an exception. The
>following output is from the attached example code.
>
>~/src/java/rules > java TestInterval
>1
>string1
>TestInterval.executeQuery() : No class found for interval.
>TestInterval.main : No class found for interval.
>No class found for interval.

This is caused because getObject() can't find the class handling Interval.
Probably because there currently isn't one.

When I last checked there was 45 types in 7.1 and I think the JDBC driver
has about 1/2 of them mapped to either SQL or a custom class. Shouldn't
take too long to implement.

Peter

pgsql-bugs by date:

Previous
From: "And. Andruikhanov"
Date:
Subject: insert char(1) type by different ways.
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: SQL-Explorer Delphi and Access 2000/97 doesn't display tables any more