mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-10 16:58:46 +01:00
* odbc_queries: fix list_users queries with limit/offset.
SVN Revision: 1188
This commit is contained in:
parent
1309f26f06
commit
0eb8aafc0d
@ -143,11 +143,11 @@ list_users(LServer) ->
|
||||
|
||||
list_users(LServer, [{from, Start}, {to, End}]) when is_integer(Start) and
|
||||
is_integer(End) ->
|
||||
list_users(LServer, [{limit, End-Start}, {offset, Start-1}]);
|
||||
list_users(LServer, [{limit, End-Start+1}, {offset, Start-1}]);
|
||||
list_users(LServer, [{prefix, Prefix}, {from, Start}, {to, End}]) when is_list(Prefix) and
|
||||
is_integer(Start) and
|
||||
is_integer(End) ->
|
||||
list_users(LServer, [{prefix, Prefix}, {limit, End-Start}, {offset, Start-1}]);
|
||||
list_users(LServer, [{prefix, Prefix}, {limit, End-Start+1}, {offset, Start-1}]);
|
||||
|
||||
list_users(LServer, [{limit, Limit}, {offset, Offset}]) when is_integer(Limit) and
|
||||
is_integer(Offset) ->
|
||||
|
Loading…
Reference in New Issue
Block a user