Changeset: c85c2d90d31f for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/c85c2d90d31f
Modified Files:
src/main/java/org/monetdb/jdbc/MonetConnection.java
Branch: default
Log Message:
Improve the implementation of abort() by using the provided Executor object.
diffs (22 lines):
diff --git a/src/main/java/org/monetdb/jdbc/MonetConnection.java
b/src/main/java/org/monetdb/jdbc/MonetConnection.java
--- 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();
+ }
+ });
}
/**
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]