Skip to content

Commit 48eca57

Browse files
committed
enhance: increase supported table size and row limit for quick filter menu showing distinct values
1 parent fc728cf commit 48eca57

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
@@ -8180,7 +8180,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
81808180
ShowStatusMsg(_('Fetching distinct values ...'));
81818181
DbObj := ActiveDbObj;
81828182
Conn := DbObj.Connection;
8183-
MaxSize := SIZE_GB;
8183+
MaxSize := SIZE_GB*2;
81848184
ColumnHasIndex := DataGridResult.ColIsKeyPart(ResultCol)
81858185
or DataGridResult.ColIsUniqueKeyPart(ResultCol)
81868186
or DataGridResult.ColIsPrimaryKeyPart(ResultCol);
@@ -8194,7 +8194,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
81948194
if not SynMemoFilter.Text.Trim.IsEmpty then
81958195
Query := Query + ' WHERE ' + SynMemoFilter.Text.Trim + CRLF;
81968196
Query := Query + ' GROUP BY '+Conn.QuoteIdent(ColName)+' ORDER BY c DESC, '+Conn.QuoteIdent(ColName);
8197-
Data := Conn.GetResults(Conn.ApplyLimitClause('SELECT', Query, 30, 0));
8197+
Data := Conn.GetResults(Conn.ApplyLimitClause('SELECT', Query, 50, 0));
81988198
for i:=0 to Data.RecordCount-1 do begin
81998199
if QFvalues.Count > i then
82008200
Item := QFvalues[i]

0 commit comments

Comments
 (0)