'Invalid variant operation' MemUtils.VarEqual (Line 530)

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cis-wurzen
Posts: 75
Joined: Tue 04 Jan 2005 10:26

'Invalid variant operation' MemUtils.VarEqual (Line 530)

Post by cis-wurzen » Tue 19 Jul 2011 14:23

Delphi 5, ODAC 7.20.0.7

Changes in TCustomDADataSet.SetMasterParams of DBAccess.pas
from Version 7.20.0.6 to 7.20.0.7 results in
'Invalid variant operation' at MemUtils.VarEqual (Line 530)


In our case AParams.IsNull is True, Field.IsNull is not True
so VarEqual is called with Value1 = varEmpty and Value = string
VarType(Value1) = 0, VarType(Value2) = 256.

Value1 and Value2 are only checked against Null [VarType(Value1) = 1] but not if Empty [VarType(Value1) = 0]!

Program runs to Line 530 and checking (Value1 = Value2) raises Exception.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 20 Jul 2011 09:05

Hello,

Thank you for the information.
We have reproduced the problem.
We will notify you as soon as we have any results.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 08 Sep 2011 09:46

Hello,

We have fixed the problem.
This fix will be included in the next version
The next version will be available next week..

Post Reply