Subject Re: [Firebird-Java] RE: Get execution plan through JDBC
Author Mark Rotteveel
On 3-3-2014 22:18, IJFQSFTGESJU@... wrote:
> Using a PreparedStatement works fine.
>> The getExecutionPlan() method is defined in the interface FirebirdResultset.
> When I cast my ResultSet I get from executeQuery() I get the following
> error:
> java.lang.ClassCastException: org.firebirdsql.jdbc.FBResultSet cannot be
> cast to org.firebirdsql.jdbc.FirebirdResultSet
> When I use rs.unwrap(FirebirdResultSet.class);
> org.firebirdsql.jdbc.FBSQLException: No compatible class found.
> at org.firebirdsql.jdbc.FBResultSet.unwrap(
> But using a PreparedStatement is easier to integrate for me anyway, so
> it doesn't really matter.

Prior to Jaybird 2.2.3 this interface was missing from the definition of
FBResultSet. So if you are using an older version that might be the reason.

Mark Rotteveel