mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
first patch to mssql quety, still one patch to be done
SVN Revision: 1066
This commit is contained in:
parent
f3322710c0
commit
4b65154dd3
@ -433,11 +433,19 @@ list_users(LServer) ->
|
|||||||
LServer,
|
LServer,
|
||||||
"EXECUTE dbo.list_users").
|
"EXECUTE dbo.list_users").
|
||||||
|
|
||||||
|
list_users(LServer, _) ->
|
||||||
|
% scope listing not supported
|
||||||
|
list_users(LServer).
|
||||||
|
|
||||||
users_number(LServer) ->
|
users_number(LServer) ->
|
||||||
ejabberd_odbc:sql_query(
|
ejabberd_odbc:sql_query(
|
||||||
LServer,
|
LServer,
|
||||||
"select count(*) from users with (nolock)").
|
"select count(*) from users with (nolock)").
|
||||||
|
|
||||||
|
users_number(LServer, _) ->
|
||||||
|
% scope listing not supported
|
||||||
|
users_number(LServer).
|
||||||
|
|
||||||
add_spool_sql(Username, XML) ->
|
add_spool_sql(Username, XML) ->
|
||||||
["EXECUTE dbo.add_spool '", Username, "' , '",XML,"'"].
|
["EXECUTE dbo.add_spool '", Username, "' , '",XML,"'"].
|
||||||
|
|
||||||
@ -539,7 +547,7 @@ get_subscription(LServer, Username, SJID) ->
|
|||||||
LServer,
|
LServer,
|
||||||
["EXECUTE dbo.get_subscription '", Username, "' , '", SJID, "'"]).
|
["EXECUTE dbo.get_subscription '", Username, "' , '", SJID, "'"]).
|
||||||
|
|
||||||
set_private_data(_LServer, Username, LXMLNS, SData) ->
|
set_private_data(LServer, Username, LXMLNS, SData) ->
|
||||||
ejabberd_odbc:sql_query(
|
ejabberd_odbc:sql_query(
|
||||||
LServer,
|
LServer,
|
||||||
set_private_data_sql(Username, LXMLNS, SData)).
|
set_private_data_sql(Username, LXMLNS, SData)).
|
||||||
|
Loading…
Reference in New Issue
Block a user