From f8c4e53675d4d9c76a39a226cdf6680d7ac8ef5d Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 21 Oct 2013 17:32:40 +0000 Subject: [PATCH] Fix compiler warning --- source/main.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.pas b/source/main.pas index 931e066e..49ef3247 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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;