#1 mORMot 1 » Bug in SynCrossPlatformREST.pas? » 2014-09-08 09:48:48

hanspi
Replies: 1

Hello AB

I play with SMS and mORMot and I think this code is wrong (SynCrossPlatformREST.pas):

constructor TSQLRecord.Create(aClient: TSQLRest;
  const FieldNames, SQLWhere: string; const BoundsSQLWhere: array of const);
begin
  Create;
  if aClient<>nil then
    aClient.Retrieve(SQLWhere,FieldNames,BoundsSQLWhere,self);
end;

replace it with:

constructor TSQLRecord.Create(aClient: TSQLRest;
  const FieldNames, SQLWhere: string; const BoundsSQLWhere: array of const);
begin
  Create;
  if aClient<>nil then
    aClient.Retrieve(FieldNames,SQLWhere,BoundsSQLWhere,self);
end;

Thanks for this great framework!
regards

Board footer

Powered by FluxBB