Fix compiler warning

This commit is contained in:
Ansgar Becker
2013-10-21 17:32:40 +00:00
parent de1892464d
commit f8c4e53675

View File

@@ -4643,13 +4643,13 @@ begin
tbtnDataSorting.ImageIndex := 107;
// Append LIMIT clause
Offset := 0;
if RefreshingData and (vt.Tag <> VTREE_NOTLOADED_PURGECACHE) then begin
case DBObj.Connection.Parameters.NetTypeGroup of
ngMSSQL: Offset := 0; // Does not support offset in all server versions
ngMySQL: Offset := DataGridResult.RecordCount;
end;
end else
Offset := 0;
end;
Select := DBObj.Connection.ApplyLimitClause('SELECT', Select, DatagridWantedRowCount-Offset, Offset);
vt.BeginUpdate;