Patch to fix problems on SQLite Blob Fields

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
dopidaniel
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.09.2009, 16:37

Patch to fix problems on SQLite Blob Fields

Post by dopidaniel »

Hello everyone,

In order to migrate to Firebird 2.5, I decided to test Zeos 7.0.0 again

My application uses SQLite and Firebird. I noticed that a blob field in my table in SQLite was not correctly read, while the same field, from the same table, but in Firebird (with the same structure and data), was accessed correctly.

Investigating the problem, I noticed that when the field immediately prior to the Blob field is null, the contents of the Blob is despised ...

Debugging the source code, I noticed that in some Units within "dbc" directory, when the Blob contents is readed, the internal variable "LastWasNull" is not being set ... so this cause the problem ...

The patch attached contains modifications to some Units on DBC, adjusting the content of "LastWasNull" on "GetBlob"

Please consider whether the changes are correct, and if it can be integrated with SVN sources

Thanks
You do not have the required permissions to view the files attached to this post.
zabukowski
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 08.11.2010, 12:33

Post by zabukowski »

+1

Zabukowski
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Doesn't seem to crash the test suite.
SVN 863 (Testing branch, to be merged into 6.6-patches.

Mark
Image
dopidaniel
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 12.09.2009, 16:37

Post by dopidaniel »

Hi Mark,

Thanks for reviewing my patch ...

I am a bit confused on SVN use ... These changes I made were about the sources of the folder "trunk"

svn://zeos.firmos.at/zeos/trunk

Is that correct? The changes will be applied to this folder?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

dopidaniel,

Yes, the patch will be merged to trunk at the next merge operation. Which means after at least a week and then when time permits...

Afterwards the patch will also be merged into the 6.6-patches branch (maintenance releases).

Meanwhile you can find the already patched version on svn://zeos.firmos.at/zeos/branches/testing , but this branch should be considered experimental.

Mark
Image
Locked