Permalink
Browse files

Silence potential crashes in TDBConnection.PrefetchCreateCode, when H…

…eidis cached list of tables has a table which does not exist at the time when the proposal shows up. Closes #452.
  • Loading branch information...
ansgarbecker committed Dec 20, 2018
1 parent c757cf0 commit 993fdec3df657f77728d9f8ab481a0f6e0796042
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/dbconnection.pas
@@ -3174,8 +3174,12 @@ procedure TDBConnection.PrefetchCreateCode(Objects: TDBObjectList);
end;
end;
end;
if Queries.Count > 0 then
if Queries.Count > 0 then try
PrefetchResults(implodestr(';', Queries));
except
on E:EDatabaseError do;
end;

end;


0 comments on commit 993fdec

Please sign in to comment.