Fetching rows from FB 3 Beta 1 results in NullPointerException [JDBC376] #418
Labels
affect-version: Jaybird 2.1.6
affect-version: Jaybird 2.2
affect-version: Jaybird 2.2.1
affect-version: Jaybird 2.2.2
affect-version: Jaybird 2.2.3
affect-version: Jaybird 2.2.4
affect-version: Jaybird 2.2.5
component: wire protocol
fix-version: Jaybird 2.2.6
priority: major
resolution: fixed
type: bug
Submitted by: @mrotteveel
Fetching rows from a Firebird 3 Beta 1 (or higher) results - potentially - in a NullPointerException. The reason is that Firebird 3 no longer returns the number of requested rows, but can make an optimization decision to return less rows. Jaybird 2.2 however always expects the requested number of rows, unless it is the last batch of rows (fetch returns status 100).
On Firebird-devel Dmitry has indicated that for protocol 10 this change in behavior will be reverted, however it would be good to change the code in Jaybird to not assume the requested number of rows is returned always.
The affected code was already changed in Jaybird 3, so only Jaybird 2.2.5 and earlier are affected.
Commits: 8c51b88 FirebirdSQL/fbt-repository@16d1f1e
The text was updated successfully, but these errors were encountered: