#1 2023-10-05 20:18:46

tbo
Member
Registered: 2015-04-20
Posts: 354

Bug TDynArray.SaveToJson, Commit 6006

mORMot2, Commit 6006 (0eae863), Unit mormot.core.data, Line 7675

Parameter "reformat" was forgotten to be passed.

procedure TDynArray.SaveToJson(out result: RawUtf8; EnumSetsAsText: boolean;
  reformat: TTextWriterJsonFormat);
begin
  SaveToJson(result, TEXTWRITEROPTIONS_ENUMASTEXT[EnumSetsAsText],
    TEXTWRITEROBJECTOPTIONS_ENUMASTEXT[EnumSetsAsText], --> reformat);
end;

With best regards
Thomas

Offline

#2 2023-10-06 08:53:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,713
Website

Re: Bug TDynArray.SaveToJson, Commit 6006

You are right.

Should be fixed by https://github.com/synopse/mORMot2/commit/441b8873

Offline

Board footer

Powered by FluxBB