On 27/07/2020 21:42, Jim Campana wrote:
> I am trying to upgrade Jaybird from 2.2.15 to 3.09, and have come across
> an error related to blobs.
> I have a few unit tests that generate a XML document (read from DB), and
> am getting a "blobId must be non-zero for an input blob" error (which I
> found an assertion was introduced in the 3.0 driver.) Has anyone run
> into this issue, and gotten around it?
>
> Configuration for application:
>
> * HikariCP 2.4.4
> * hibernate-core 5.4.2.Final
> * javaVersion 1.8
Just in case someone comes across this thread because they receive the
same error: Jaybird's behaviour was changed in Jaybird 5.0.3 to accept
blob id 0 and request it from the server (which will then treat it as an
empty blob), instead of throwing an exception.
Though theoretically blob id 0 shouldn't occur, in practice they do seem
to occur (possibly due to bugs in Firebird or connection libraries). As
Firebird and fbclient itself considers blob id (semi-)valid and have it
behave as an empty blob, I decide to follow that behaviour (see also
https://github.com/FirebirdSQL/jaybird/issues/764).
Mark
--
Mark Rotteveel