Subject Re: [Firebird-Java] Yet about code that works in 1.5.5 and doesn't in 2.0.1 (getResultSet)
Author Roman Rokytskyy
> Then, if I don't get the ResultSet like this "rs =
> stmt.executeQuery(...);", and try to call "getResultSet();" after in the
> code, the lines 537-539 arises an exception:
> if (currentRs != null) {
> throw new FBSQLException("Only one resultset at a time/statement.");
> }
>
> Then, I think this is a bug in Jaybird driver, that don't allow
> separated calls to "getResultSet();".

It is not a bug, but JDBC specification that requires us to do so (see
Javadoc for getResultSet() method). If you check it deeper, you will see
other weird code that is there only to support such odd things.

Roman