mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 00:09:26 +02:00
* 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:
parent
9d8d518029
commit
3b7bb9da6a
@ -678,7 +678,7 @@ end;
|
|||||||
Procedure TParam.SetAsVariant(const AValue: Variant);
|
Procedure TParam.SetAsVariant(const AValue: Variant);
|
||||||
begin
|
begin
|
||||||
FValue:=AValue;
|
FValue:=AValue;
|
||||||
FBound:=not VarIsClear(Value);
|
FBound:=not VarIsClear(AValue);
|
||||||
if FDataType = ftUnknown then
|
if FDataType = ftUnknown then
|
||||||
case VarType(Value) of
|
case VarType(Value) of
|
||||||
varBoolean : FDataType:=ftBoolean;
|
varBoolean : FDataType:=ftBoolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user