Subject | RE: Get execution plan through JDBC |
---|---|
Author | |
Post date | 2014-03-03T21:18Z |
Using a PreparedStatement works fine.
java.lang.ClassCastException: org.firebirdsql.jdbc.FBResultSet cannot be cast to org.firebirdsql.jdbc.FirebirdResultSet
> 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.
Thanks for your help
Thomas
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.
Thanks for your help
Thomas