first patch to mssql quety, still one patch to be done

SVN Revision: 1066
This commit is contained in:
Christophe Romain 2007-12-11 17:43:49 +00:00
parent f3322710c0
commit 4b65154dd3
1 changed files with 9 additions and 1 deletions

View File

@ -433,11 +433,19 @@ list_users(LServer) ->
LServer,
"EXECUTE dbo.list_users").
list_users(LServer, _) ->
% scope listing not supported
list_users(LServer).
users_number(LServer) ->
ejabberd_odbc:sql_query(
LServer,
"select count(*) from users with (nolock)").
users_number(LServer, _) ->
% scope listing not supported
users_number(LServer).
add_spool_sql(Username, XML) ->
["EXECUTE dbo.add_spool '", Username, "' , '",XML,"'"].
@ -539,7 +547,7 @@ get_subscription(LServer, Username, SJID) ->
LServer,
["EXECUTE dbo.get_subscription '", Username, "' , '", SJID, "'"]).
set_private_data(_LServer, Username, LXMLNS, SData) ->
set_private_data(LServer, Username, LXMLNS, SData) ->
ejabberd_odbc:sql_query(
LServer,
set_private_data_sql(Username, LXMLNS, SData)).