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 {
// If the driver supports scrollable result sets, use that feature.
if (isScrollResultsSupported()) {
if (rowNumber > 0) {
// Newer oracle JDBC driver do not like fetch-foward result sets to
// use absolute(int) or relative(int) calls, so special-case.
if (getDatabaseType() != DatabaseType.oracle) {
rs.setFetchDirection(ResultSet.FETCH_FORWARD);
}
rs.setFetchDirection(ResultSet.FETCH_FORWARD);
rs.relative(rowNumber);
}
}
......@@ -452,6 +448,7 @@ public class DbConnectionManager {
if (dbName.indexOf("oracle") != -1) {
databaseType = DatabaseType.oracle;
streamTextRequired = true;
scrollResultsSupported = false;
// The i-net AUGURO JDBC driver
if (driverName.indexOf("auguro") != -1) {
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