* using value instead of avalue does not properly set bound because getvalueasvariant

returns 0.0 if isnull. Mantis 17819, patch from Martin Schreiber.

git-svn-id: trunk@16392 -
This commit is contained in:
marco 2010-11-21 14:46:26 +00:00
parent 9d8d518029
commit 3b7bb9da6a

View File

@ -678,7 +678,7 @@ end;
Procedure TParam.SetAsVariant(const AValue: Variant);
begin
FValue:=AValue;
FBound:=not VarIsClear(Value);
FBound:=not VarIsClear(AValue);
if FDataType = ftUnknown then
case VarType(Value) of
varBoolean : FDataType:=ftBoolean;