From 993fdec3df657f77728d9f8ab481a0f6e0796042 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 20 Dec 2018 11:50:38 +0100 Subject: [PATCH] Silence potential crashes in TDBConnection.PrefetchCreateCode, when Heidis cached list of tables has a table which does not exist at the time when the proposal shows up. Closes #452. --- source/dbconnection.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 7f25c488..1cde1673 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -3174,8 +3174,12 @@ begin end; end; end; - if Queries.Count > 0 then + if Queries.Count > 0 then try PrefetchResults(implodestr(';', Queries)); + except + on E:EDatabaseError do; + end; + end;