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:
parent
80bb9da233
commit
f3f5527aaa
1 changed files with 3 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue