Skip to content

MaxRecordCount don't wok #424

@arkadiusz-wolanski

Description

@arkadiusz-wolanski

Hi,

the parameter MaxRecordCount for the Method SelectRQL doesn't work, it is ignored by the Method InternalSelectRQL:

function TMVCActiveRecord.InternalSelectRQL(const RQL: string; const MaxRecordCount: Integer): TMVCActiveRecordList;
var
  lSQL: string;
begin
  lSQL := SQLGenerator.CreateSQLWhereByRQL(RQL, GetMapping);
  LogD(Format('RQL [%s] => SQL [%s]', [RQL, lSQL]));
  Result := Where(TMVCActiveRecordClass(Self.ClassType), lSQL, []);
end;

If you use this Method for a huge Table, it delivers all records.

Metadata

Metadata

Assignees

Labels

acceptedIssue has been accepted and inserted in a future milestone

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions