Skip to content

Commit 1e13f13

Browse files
committed
enhance: increase supported table size and row limit for quick filter menu showing distinct values
1 parent 86fe876 commit 1e13f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/main.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8362,7 +8362,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
83628362
ShowStatusMsg(_('Fetching distinct values ...'));
83638363
DbObj := ActiveDbObj;
83648364
Conn := DbObj.Connection;
8365-
MaxSize := SIZE_GB;
8365+
MaxSize := SIZE_GB*2;
83668366
ColumnHasIndex := DataGridResult.ColIsKeyPart(ResultCol)
83678367
or DataGridResult.ColIsUniqueKeyPart(ResultCol)
83688368
or DataGridResult.ColIsPrimaryKeyPart(ResultCol);
@@ -8376,7 +8376,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
83768376
if SynMemoFilter.Text <> '' then
83778377
Query := Query + ' WHERE ' + SynMemoFilter.Text + CRLF;
83788378
Query := Query + ' GROUP BY '+Conn.QuoteIdent(ColName)+' ORDER BY c DESC, '+Conn.QuoteIdent(ColName);
8379-
Data := Conn.GetResults(Conn.ApplyLimitClause('SELECT', Query, 30, 0));
8379+
Data := Conn.GetResults(Conn.ApplyLimitClause('SELECT', Query, 50, 0));
83808380
for i:=0 to Data.RecordCount-1 do begin
83818381
if QFvalues.Count > i then
83828382
Item := QFvalues[i]

0 commit comments

Comments
 (0)