Posted
over 4 years
ago
by
ab
1. Perhaps there are some limitation. Empty values are handled, but I am not sure for not empty record.2. Class fields are not handled properly in records, for sure.This is not a mORMot problem, but a pascal language limitation. You need to call Free
|
Posted
over 4 years
ago
by
ab
On some compilers - e.g. FPC - length() is slightly faster than high().
|
Posted
over 4 years
ago
by
liam1983
The same way like the jpg?
|
Posted
over 4 years
ago
by
macfly
Another option is to create a TSQLRestRoutingREST to be used by the service and override the ExecuteSOAByInterface method to handle the error. Using this approach, I can send a custom error and messagem on an interface-based service.However, since you want to validate the type of data, it would be best to use method-based services.
|
Posted
over 4 years
ago
by
edwinsn
Good choices! Thanks ab for all your efforts!
|
Posted
over 4 years
ago
by
Milos
Ah I see, good luck
|
Posted
over 4 years
ago
by
macfly
One option is to create a record to store coordinates.type
TCoordinate = packed record
d1: Double;
d2: Double;
end;
TGeometry = packed record
coordinates: array of TCoordinate;
AType: RawUTF8;
end;
const
__TCoordinate = 'd1 double d2
|
Posted
over 4 years
ago
by
ab
Yesterday, I already fixed some of the issues (5-7 at least).I will look forward to the other points.Thanks a lot for the feedback!It is a very good sign that you find yourself your way into the new source code base!
|
Posted
over 4 years
ago
by
ab
Use ServerDB.WriteLock/WriteUnLock instead of a transaction: on server side, it will be faster and safer.
|
Posted
over 4 years
ago
by
ab
In the "05 - Report" sample there is a bitmap drawn on the document.
|