This commit is contained in:
zyyang 2021-01-17 16:57:26 +08:00
parent 34a8cbb4cc
commit 4292121dea
1 changed files with 1 additions and 2 deletions

View File

@ -175,11 +175,10 @@ public class StatementTest {
@AfterClass @AfterClass
public static void close() throws Exception { public static void close() throws Exception {
if (!statement.isClosed()) { if (!statement.isClosed()) {
statement.executeUpdate("drop database " + dbName); statement.executeUpdate("drop database if exists " + dbName);
statement.close(); statement.close();
connection.close(); connection.close();
Thread.sleep(10); Thread.sleep(10);
} }
} }
} }