This closes #1963
This commit is contained in:
commit
caa19647ae
|
@ -95,6 +95,7 @@ public abstract class AbstractJDBCDriver {
|
|||
synchronized (connection) {
|
||||
if (sqlProvider.closeConnectionOnShutdown()) {
|
||||
try {
|
||||
connection.setAutoCommit(true);
|
||||
connection.close();
|
||||
} catch (SQLException e) {
|
||||
logger.error(JDBCUtils.appendSQLExceptionDetails(new StringBuilder(), e));
|
||||
|
|
|
@ -82,7 +82,7 @@ public class JDBCUtils {
|
|||
errorMessage.append(' ');
|
||||
}
|
||||
formatSqlException(errorMessage, nextEx);
|
||||
nextEx = exception.getNextException();
|
||||
nextEx = nextEx.getNextException();
|
||||
level++;
|
||||
}
|
||||
while (nextEx != null);
|
||||
|
|
|
@ -84,3 +84,6 @@ create-journal-table.oracle=CREATE TABLE %s(id NUMBER(19),recordType NUMBER(5),c
|
|||
# 4 GiB
|
||||
max-blob-size.oracle=4294967296
|
||||
table-names-case.oracle=upper
|
||||
|
||||
# DB2 SQL statements
|
||||
create-file-table.db2=CREATE TABLE %s (ID BIGINT GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1), FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA BLOB, PRIMARY KEY(ID))
|
|
@ -511,6 +511,7 @@ public abstract class ActiveMQTestBase extends Assert {
|
|||
connection.rollback();
|
||||
}
|
||||
}
|
||||
connection.setAutoCommit(true);
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
|
|
|
@ -83,7 +83,7 @@ public abstract class LargeMessageTestBase extends ActiveMQTestBase {
|
|||
public void tearDown() throws Exception {
|
||||
super.tearDown();
|
||||
if (storeType == StoreConfiguration.StoreType.DATABASE) {
|
||||
destroyTables(Arrays.asList("BINDINGS", "LARGE_MESSAGE", "MESSAGE"));
|
||||
destroyTables(Arrays.asList("BINDINGS", "LARGE_MESSAGE", "MESSAGE", "NODE_MANAGER_STORE"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ public abstract class StorageManagerTestBase extends ActiveMQTestBase {
|
|||
|
||||
scheduledExecutorService.shutdown();
|
||||
|
||||
destroyTables(Arrays.asList(new String[]{"MESSAGE", "BINDINGS", "LARGE_MESSAGE"}));
|
||||
destroyTables(Arrays.asList(new String[]{"MESSAGE", "BINDINGS", "LARGE_MESSAGE", "NODE_MANAGER_STORE"}));
|
||||
super.tearDown();
|
||||
if (exception != null)
|
||||
throw exception;
|
||||
|
|
|
@ -123,7 +123,7 @@ public class BasicXaRecoveryTest extends ActiveMQTestBase {
|
|||
MBeanServerFactory.releaseMBeanServer(mbeanServer);
|
||||
super.tearDown();
|
||||
if (storeType == StoreConfiguration.StoreType.DATABASE) {
|
||||
destroyTables(Arrays.asList("BINDINGS", "LARGE_MESSAGE", "MESSAGE"));
|
||||
destroyTables(Arrays.asList("BINDINGS", "LARGE_MESSAGE", "MESSAGE", "NODE_MANAGER_STORE"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue