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

Fixed prepared statement under SQL Server (JM-468).

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3116 b35dd754-fafc-0310-a699-88a17e54d16e
parent d2cbb096
......@@ -232,7 +232,7 @@ public class DefaultUserProvider implements UserProvider {
PreparedStatement pstmt = null;
try {
con = DbConnectionManager.getConnection();
pstmt = con.prepareStatement(ALL_USERS);
pstmt = DbConnectionManager.createScrollablePreparedStatement(con, ALL_USERS);
ResultSet rs = pstmt.executeQuery();
DbConnectionManager.setFetchSize(rs, startIndex + numResults);
DbConnectionManager.scrollResultSet(rs, startIndex);
......
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