Skip to content

Commit

Permalink
Fix set native boolean field type asVariant
Browse files Browse the repository at this point in the history
It closes  #27
  • Loading branch information
madorin committed Dec 29, 2023
1 parent fdef997 commit cad23f8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions FIBQuery.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2317,10 +2317,15 @@ procedure TFIBXSQLVAR.SetAsVariant(Value: Variant);
varCurrency:
AsCurrency := Value;
varBoolean:
if Value then
AsVariant := VariantTrue
else
AsVariant := VariantFalse;
case sSQLType of
FB3_SQL_BOOLEAN:
AsBoolean := Value;
else
if Value then
AsVariant := VariantTrue
else
AsVariant := VariantFalse;
end;
varDate:
case sSQLType of
SQL_TYPE_TIME: AsTime:=Value;
Expand Down

0 comments on commit cad23f8

Please sign in to comment.