Commit 3ad75e68 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Workaround for Oracle JDBC drivers. part deux.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@981 b35dd754-fafc-0310-a699-88a17e54d16e
parent c29b159f
......@@ -224,10 +224,7 @@ public class DbConnectionManager {
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 {
if (getDatabaseType() != DatabaseType.oracle) {
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