Commit a68931fc authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-659: Fix paginated query for JDBCUserProvider

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13607 b35dd754-fafc-0310-a699-88a17e54d16e
parent f7bfbd3b
...@@ -253,7 +253,7 @@ public class JDBCUserProvider implements UserProvider { ...@@ -253,7 +253,7 @@ public class JDBCUserProvider implements UserProvider {
} }
public Collection<User> getUsers(int startIndex, int numResults) { public Collection<User> getUsers(int startIndex, int numResults) {
Collection<String> usernames = getUsernames(0, Integer.MAX_VALUE); Collection<String> usernames = getUsernames(startIndex, numResults);
return new UserCollection(usernames.toArray(new String[usernames.size()])); return new UserCollection(usernames.toArray(new String[usernames.size()]));
} }
......
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