Mercurial > hg > monetdb-java
changeset 771:c85c2d90d31f
Improve the implementation of abort() by using the provided Executor object.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 13 Jul 2023 14:03:13 +0200 (21 months ago) |
parents | 1b9fe515f574 |
children | 9493dacdd186 |
files | src/main/java/org/monetdb/jdbc/MonetConnection.java |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java +++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java @@ -1585,9 +1585,15 @@ public class MonetConnection return; if (executor == null) throw new SQLException("executor is null", "M1M05"); - // this is really the simplest thing to do, it destroys - // everything (in particular the server connection) - close(); + + executor.execute(new Runnable() { + @Override + public void run() { + // this is really the simplest thing to do, it destroys + // everything (in particular the server connection) + close(); + } + }); } /**