2
0
Fork 0
mirror of https://github.com/ethauvin/rife2.git synced 2025-05-01 11:08:11 -07:00

Removed Oracle from the datasources tested in testTransactionUserCommit

This commit is contained in:
Geert Bevin 2023-01-01 02:28:43 -05:00
parent 80bb9da233
commit f3f5527aaa

View file

@ -96,6 +96,8 @@ public class TestDbQueryManager {
final int[] other_first_int = {-1}; final int[] other_first_int = {-1};
if (manager.getConnection().supportsTransactions() && if (manager.getConnection().supportsTransactions() &&
// oracle doesn't support repeatable read isolation
!datasource.getAliasedDriver().equals("oracle.jdbc.driver.OracleDriver") &&
// these databases lock on the entire table, preventing this multithreaded test to work // these databases lock on the entire table, preventing this multithreaded test to work
!datasource.getAliasedDriver().equals("org.hsqldb.jdbcDriver") && !datasource.getAliasedDriver().equals("org.hsqldb.jdbcDriver") &&
!datasource.getAliasedDriver().equals("org.apache.derby.jdbc.EmbeddedDriver")) { !datasource.getAliasedDriver().equals("org.apache.derby.jdbc.EmbeddedDriver")) {
@ -154,12 +156,8 @@ public class TestDbQueryManager {
} }
public int getTransactionIsolation() { public int getTransactionIsolation() {
if (datasource.getAliasedDriver().equals("oracle.jdbc.driver.OracleDriver")) {
return Connection.TRANSACTION_SERIALIZABLE;
} else {
return Connection.TRANSACTION_REPEATABLE_READ; return Connection.TRANSACTION_REPEATABLE_READ;
} }
}
}); });
try { try {