#1 2014-09-08 09:48:48

hanspi
Member
Registered: 2014-09-02
Posts: 1

Bug in SynCrossPlatformREST.pas?

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

Offline

#2 2014-09-08 11:39:01

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

Re: Bug in SynCrossPlatformREST.pas?

I've just fixed the overloaded constructor TSQLRecord.Create() constructor.
See http://synopse.info/fossil/info/9927e155a

Thanks a lot for the patch!
smile

Offline

Board footer

Powered by FluxBB