TZQuery Filtering oldvalue

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
nelsonroda
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 08.03.2013, 11:14

TZQuery Filtering oldvalue

Post by nelsonroda »

Example
TZquery returns:
ID Value1 Value2
1;1;10
2;1;1
3;2;2
4;2;1

when filtered is not true
for id = 2 the
query.FieldByName('Value2').OldValue gives 1.
If i make query.Filter := 'Value1 = 1';
for id = 2
query.FieldByName('Value2').OldValue gives 10.

How can i fix this.
Thx in advance.
NelsonRoda
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

nelsonroda,

What compiler are you working with? This may have impact here, I think, because here we're looking at TField behaviour which isn't zeoslib code, but vcl/fcl-db code.

Is it possible to demonstrate this issue using a small command line program using our test database (included in the bigger snapshot releases or visible at http://sourceforge.net/p/zeoslib/code-0 ... /database/)
That would make reproducing and debugging a lot easier for me because then it's easily convertible into a test suite test.

Mark
Image
Post Reply