aboutsummaryrefslogtreecommitdiff
path: root/src/odbc_queries.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/odbc_queries.erl')
-rw-r--r--src/odbc_queries.erl12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/odbc_queries.erl b/src/odbc_queries.erl
index 23b8e8da6..314b7cc13 100644
--- a/src/odbc_queries.erl
+++ b/src/odbc_queries.erl
@@ -219,13 +219,15 @@ list_users(LServer,
[Prefix, Limit, Offset]))]).
users_number(LServer) ->
- case element(1,
- ejabberd_config:get_local_option(
- {odbc_server, LServer}, fun(V) -> V end))
- of
+ Type = ejabberd_config:get_option({odbc_type, LServer},
+ fun(pgsql) -> pgsql;
+ (mysql) -> mysql;
+ (odbc) -> odbc
+ end, odbc),
+ case Type of
pgsql ->
case
- ejabberd_config:get_local_option(
+ ejabberd_config:get_option(
{pgsql_users_number_estimate, LServer},
fun(V) when is_boolean(V) -> V end,
false)