From 4b65154dd3b0846a6efe0eccf0801440b0cfc9bf Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 11 Dec 2007 17:43:49 +0000 Subject: [PATCH] first patch to mssql quety, still one patch to be done SVN Revision: 1066 --- src/odbc/odbc_queries.erl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/odbc/odbc_queries.erl b/src/odbc/odbc_queries.erl index bfe9d7c97..223072962 100644 --- a/src/odbc/odbc_queries.erl +++ b/src/odbc/odbc_queries.erl @@ -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)).