[patch_done] Error if param is null

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
cfc
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.06.2012, 15:02

[patch_done] Error if param is null

Post by cfc »

hi,

I' have a problem when the param of query is Null

If the param is null "example: zquery1.parambyname('id').clear" when call de fuction LoadOracleVars in de line 413 of ZdbcOracleUtils (CurrentVar.Data := nil;) the reserved memory is lost and when other call the param have a value give an error.

If delete this line its ok, but i' dont know is CurrentVar.Indicator := -1 is suficient for detect all type that is null.

Sorry for my english.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

cfc,

I think you're right. I took a quick look now. The oracle variables are initialized with getmem(). On nilling this data pointer can result your repoted issue. Which branch do you use? I did report an equal issue here: http://zeos.firmos.at/viewtopic.php?p=15391#15391 it can be that your solution does solve my issue too..

Is that thread http://zeos.firmos.at/viewtopic.php?t=3522 solved?

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
cfc
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.06.2012, 15:02

Post by cfc »

Michael,

Now i' m testing /branches/testing-egonhugeist.

Yes, the thread http://zeos.firmos.at/viewtopic.php?t=3522 is solved with this branch.

thanks.

cfc.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

cfc,

i'd run our tests with your proposed fix. No new issues to see. I think the Indicator=-1 is is equal to CurrentVar = nil.

Also i've introduced a TZQuery.Properties value 'prefetch_count=x' whitch speeds up the select statements. Default value is 100.

Patch done Rev. eh1421 and Rev1420-testing.

Michael

Btw. don't worry about your english...
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked