Fixing mssql

This commit is contained in:
mposolda 2014-08-05 18:25:44 +02:00
parent 1159dc091d
commit 53fbceb49a

View file

@ -172,7 +172,7 @@ public class UserFederationManager implements UserProvider {
@Override
public List<UserModel> getUsers(RealmModel realm) {
return getUsers(realm, 0, Integer.MAX_VALUE);
return getUsers(realm, 0, Integer.MAX_VALUE - 1);
}
@ -219,7 +219,7 @@ public class UserFederationManager implements UserProvider {
@Override
public List<UserModel> searchForUser(String search, RealmModel realm) {
return searchForUser(search, realm, 0, Integer.MAX_VALUE);
return searchForUser(search, realm, 0, Integer.MAX_VALUE - 1);
}
void federationLoad(RealmModel realm, Map<String, String> attributes) {
@ -256,7 +256,7 @@ public class UserFederationManager implements UserProvider {
@Override
public List<UserModel> searchForUserByAttributes(Map<String, String> attributes, RealmModel realm) {
return searchForUserByAttributes(attributes, realm, 0, Integer.MAX_VALUE);
return searchForUserByAttributes(attributes, realm, 0, Integer.MAX_VALUE - 1);
}
@Override