Skip to content

Commit df685c8

Browse files
committed
Support Statement.closeOnCompletion.
Check a statement after all its dependent result set are closed. Extract TarantoolStatement as tarantool specific extension interface to be used for internal purposes (incompatible vendor API). Closes: tarantool#180
1 parent b905cfc commit df685c8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/java/org/tarantool/TarantoolConnectionSQLOpsIT.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public void setup() {
2222

2323
@AfterEach
2424
public void tearDown() {
25-
connection.close();
25+
if (connection != null) {
26+
connection.close();
27+
}
2628
}
2729

2830
@Override

src/test/java/org/tarantool/jdbc/JdbcConnectionTimeoutIT.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ protected void completeSql(TarantoolOp<?> operation, TarantoolPacket pack) {
7171

7272
@AfterEach
7373
void tearDown() throws SQLException {
74-
connection.close();
74+
if (connection != null) {
75+
connection.close();
76+
}
7577
}
7678

7779
@Test

0 commit comments

Comments
 (0)