Version number parsing in GDSServerVersion and AbstractFbDatabase (and GDS for earlier versions) is incorrect [JDBC535] #568
Labels
affect-version: Jaybird 2.2.12
affect-version: Jaybird 2.2.13
affect-version: Jaybird 2.2.14
affect-version: Jaybird 3.0.0
affect-version: Jaybird 3.0.1
affect-version: Jaybird 3.0.2
affect-version: Jaybird 3.0.3
affect-version: Jaybird 3.0.4
component: jdbc driver
fix-version: Jaybird 2.2.15
fix-version: Jaybird 3.0.5
fix-version: Jaybird 4
priority: major
resolution: fixed
type: bug
Submitted by: @mrotteveel
The version number parsing done on the value returned by isc_info_firebird_version is wrong. The implementation assumes the returned value is a single string, but apparently it is a compound binary response that consists of multiple length prefixed segments. This causes issues with parsing, like - for example - JDBC152 and others.
As it turns out, historically what we thought was a separator in the version string (either ",", "-" or "/"), was actually a length byte in the string that on our systems just happened to look like a separator because our hostnames had length 6 which made the extended version string either 44(,), 45(-) or 47(/) bytes.
Commits: a483426 ef1fedc 0bccd74
The text was updated successfully, but these errors were encountered: