Re: JDBC driver. Class Cast Exception when calling - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: JDBC driver. Class Cast Exception when calling
Date
Msg-id Pine.BSO.4.56.0411071514360.23204@leary.csoft.net
Whole thread Raw
In response to JDBC driver. Class Cast Exception when calling CallableStatement.getShort  ("Federico Fissore" <fissore@hyphen.it>)
List pgsql-bugs
On Sun, 7 Nov 2004, Federico Fissore wrote:

> As subject, i got a stored function that returns an int2 i successfully
> call it using a callable statement, exactly as it is written in the
> manual, but when the getShort expression is executed, i receive a
> "Exception in thread Exception in thread "Timer-1"
> java.lang.ClassCastException: java.lang.Short
>     at org.postgresql.jdbc2.AbstractJdbc2Statement.getShort(AbstractJdbc2Statement.java:1681)

This has already been fixed in cvs.

Kris Jurka

pgsql-bugs by date:

Previous
From: "Federico Fissore"
Date:
Subject: Re: JDBC driver. Class Cast Exception when calling CallableStatement.getShort
Next
From: "Laferriere, Al"
Date:
Subject: 8.0 beta4: Exception with setBoolean on char column