diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2016-11-22 16:48:01 +0300 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2016-11-22 16:48:01 +0300 |
commit | fbfbb968727617ae9bbeedc9b3d4adb7636ad5da (patch) | |
tree | e48dafe80850fe41be32a3ab47f27e6e130b832b /src/mod_shared_roster_sql.erl | |
parent | 577eeb642f2280f030303a06094947d3e6be85d0 (diff) |
Improve ODBC import
Diffstat (limited to 'src/mod_shared_roster_sql.erl')
-rw-r--r-- | src/mod_shared_roster_sql.erl | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mod_shared_roster_sql.erl b/src/mod_shared_roster_sql.erl index 5cffffeb3..9f723f839 100644 --- a/src/mod_shared_roster_sql.erl +++ b/src/mod_shared_roster_sql.erl @@ -17,8 +17,8 @@ delete_group/2, get_group_opts/2, set_group_opts/3, get_user_groups/2, get_group_explicit_users/2, get_user_displayed_groups/3, is_user_in_group/3, - add_user_to_group/3, remove_user_from_group/3, import/1, - import/2, export/1]). + add_user_to_group/3, remove_user_from_group/3, import/3, + export/1]). -include("jid.hrl"). -include("mod_roster.hrl"). @@ -177,20 +177,8 @@ export(_Server) -> [] end}]. -import(LServer) -> - [{<<"select name, opts from sr_group;">>, - fun([Group, SOpts]) -> - #sr_group{group_host = {Group, LServer}, - opts = ejabberd_sql:decode_term(SOpts)} - end}, - {<<"select jid, grp from sr_user;">>, - fun([SJID, Group]) -> - #jid{luser = U, lserver = S} = jid:from_string(SJID), - #sr_user{us = {U, S}, group_host = {Group, LServer}} - end}]. - -import(_, _) -> - pass. +import(_, _, _) -> + ok. %%%=================================================================== %%% Internal functions |