Commit c29b159f authored by Matt Tucker's avatar Matt Tucker Committed by matt

Workaround for Oracle JDBC drivers.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@980 b35dd754-fafc-0310-a699-88a17e54d16e
parent 718c3786
...@@ -222,7 +222,14 @@ public class DbConnectionManager { ...@@ -222,7 +222,14 @@ 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
// use absolute(int) or relative(int) calls, so special-case.
if (getDatabaseType() == DatabaseType.oracle) {
rs.setFetchDirection(ResultSet.TYPE_SCROLL_INSENSITIVE);
}
else {
rs.setFetchDirection(ResultSet.FETCH_FORWARD); rs.setFetchDirection(ResultSet.FETCH_FORWARD);
}
rs.relative(rowNumber); rs.relative(rowNumber);
} }
} }
......
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