You are not logged in.
Pages: 1
Hi Arnaud,
the compiler throws a warning [dcc32 Warning] mormot.core.json.pas(4883): W1014 String constant truncated to fit STRING[8]
at TJsonSaveContext.AddDateTime when using
W.AddShorter('T00:00:00Z') // the same pattern for date and dateTime
Regards,
Daniel
Offline
My bad. This is backport from mORMot1 PR391
Should be fixed by PR 26.
Also I modify a mORMot2 build script (sh) to filter a noise output of compiler (left only important warnings and errors).
The bad news is what FPC do not output any warning for such case. @ab - may be add a string length check in W.AddShorter (at last we can do such in DEBUG build), because it is very easy to shoot in the leg there.
Offline
Pages: 1