Skip to content

Commit

Permalink
let TOrm.CreateCopy copy variant properties by value
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Nov 2, 2022
1 parent ea378ab commit 881f9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
@@ -1 +1 @@
'2.0.4281'
'2.0.4282'
2 changes: 1 addition & 1 deletion src/orm/mormot.orm.base.pas
Expand Up @@ -6509,7 +6509,7 @@ procedure TOrmPropInfoRttiVariant.CopySameClassProp(Source: TObject;
var
value: Variant;
begin
fPropInfo.GetVariantProp(Source, value, {byref=}true);
fPropInfo.GetVariantProp(Source, value, {byref=}false); // copy by value
TOrmPropInfoRttiVariant(DestInfo).fPropInfo.SetVariantProp(Dest, value);
end;

Expand Down

0 comments on commit 881f9ca

Please sign in to comment.