mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 11:42:12 +08:00
Don't raise exception when user enters an invalid filter, rather do that with a normal error dialog. Fixes issue #1559.
This commit is contained in:
@ -6387,13 +6387,16 @@ begin
|
|||||||
try
|
try
|
||||||
Results := Connection.GetResults(query);
|
Results := Connection.GetResults(query);
|
||||||
except
|
except
|
||||||
// if something bad happened, nuke cache, reset cursor and display error.
|
on E:Exception do begin
|
||||||
TVirtualStringTree(Sender).RootNodeCount := 0;
|
// if something bad happened, nuke cache, reset cursor and display error.
|
||||||
SetLength(res.Rows, 0);
|
TVirtualStringTree(Sender).RootNodeCount := 0;
|
||||||
ReachedEOT := true;
|
SetLength(res.Rows, 0);
|
||||||
ShowStatus(STATUS_MSG_READY);
|
ReachedEOT := true;
|
||||||
Screen.Cursor := crDefault;
|
ShowStatus(STATUS_MSG_READY);
|
||||||
raise;
|
Screen.Cursor := crDefault;
|
||||||
|
MessageDlg(E.Message, mtError, [mbOK], 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if Cardinal(Results.RecordCount) < limit then begin
|
if Cardinal(Results.RecordCount) < limit then begin
|
||||||
limit := Results.RecordCount;
|
limit := Results.RecordCount;
|
||||||
|
Reference in New Issue
Block a user