Subject | Re: [Firebird-Java] RE: Get execution plan through JDBC |
---|---|
Author | Mark Rotteveel |
Post date | 2014-03-03T22:11:02Z |
On 3-3-2014 22:18, IJFQSFTGESJU@... wrote:
FBResultSet. So if you are using an older version that might be the reason.
Mark
--
Mark Rotteveel
>Prior to Jaybird 2.2.3 this interface was missing from the definition of
>
> 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(FBResultSet.java:186)
>
> But using a PreparedStatement is easier to integrate for me anyway, so
> it doesn't really matter.
FBResultSet. So if you are using an older version that might be the reason.
Mark
--
Mark Rotteveel