From 5b86687f2c6628a08868feebf2e1712e46c142d8 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 12 Mar 2021 09:10:04 +0100 Subject: [PATCH] Database search feature: prefer a normal log line for tables with no matching data type, so the "Found rows" column has a number, to fix wrong sorting --- source/tabletools.pas | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/tabletools.pas b/source/tabletools.pas index 14c4b30a..1ed01732 100644 --- a/source/tabletools.pas +++ b/source/tabletools.pas @@ -999,8 +999,11 @@ begin + SQL; end; AddResults(SQL, DBObj.Connection); - end else - AddNotes(DBObj, f_('%s%s doesn''t have columns of selected type (%s).', [STRSKIPPED, DBObj.ObjType, comboDatatypes.Text]), ''); + end else begin + // Prefer a normal log line, so the "Found rows" column has a number, to fix wrong sorting + //AddNotes(DBObj, f_('%s%s doesn''t have columns of selected type (%s).', [STRSKIPPED, DBObj.ObjType, comboDatatypes.Text]), ''); + AddNotes(DBObj.Database, DBObj.Name, '0', '0%'); + end; end; end;