Commit 0a61c072 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Workaround for Oracle JDBC drivers. part trois.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@982 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3ad75e68
...@@ -222,11 +222,7 @@ public class DbConnectionManager { ...@@ -222,11 +222,7 @@ public class DbConnectionManager {
// If the driver supports scrollable result sets, use that feature. // If the driver supports scrollable result sets, use that feature.
if (isScrollResultsSupported()) { if (isScrollResultsSupported()) {
if (rowNumber > 0) { if (rowNumber > 0) {
// Newer oracle JDBC driver do not like fetch-foward result sets to rs.setFetchDirection(ResultSet.FETCH_FORWARD);
// use absolute(int) or relative(int) calls, so special-case.
if (getDatabaseType() != DatabaseType.oracle) {
rs.setFetchDirection(ResultSet.FETCH_FORWARD);
}
rs.relative(rowNumber); rs.relative(rowNumber);
} }
} }
...@@ -452,6 +448,7 @@ public class DbConnectionManager { ...@@ -452,6 +448,7 @@ public class DbConnectionManager {
if (dbName.indexOf("oracle") != -1) { if (dbName.indexOf("oracle") != -1) {
databaseType = DatabaseType.oracle; databaseType = DatabaseType.oracle;
streamTextRequired = true; streamTextRequired = true;
scrollResultsSupported = false;
// The i-net AUGURO JDBC driver // The i-net AUGURO JDBC driver
if (driverName.indexOf("auguro") != -1) { if (driverName.indexOf("auguro") != -1) {
streamTextRequired = false; streamTextRequired = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment