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 {
// If the driver supports scrollable result sets, use that feature.
if (isScrollResultsSupported()) {
if (rowNumber > 0) {
rs.setFetchDirection(ResultSet.FETCH_FORWARD);
// 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.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