fix 2 test failures against sql server 2008
@@ -117,13 +117,11 @@ public class BatchExecutionWithNullTest extends AbstractTest {
@AfterAll
public static void terminateVariation() throws SQLException {
+ connection = DriverManager.getConnection(connectionString);
SQLServerStatement stmt = (SQLServerStatement) connection.createStatement();
Utils.dropTableIfExists("esimple", stmt);
- if (null != connection) {
- connection.close();
- }
if (null != pstmt) {
pstmt.close();
}
@@ -136,5 +134,8 @@ public class BatchExecutionWithNullTest extends AbstractTest {
if (null != rs) {
rs.close();
}
+ if (null != connection) {
+ connection.close();
+ }
}
}
\ No newline at end of file
