Subject RE: Get execution plan through JDBC
Author
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.

Thanks for your help
Thomas