]> granicus.if.org Git - ejabberd/commitdiff
mssql specific issue bugfix
authorChristophe Romain <christophe.romain@process-one.net>
Mon, 17 Dec 2007 14:10:26 +0000 (14:10 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Mon, 17 Dec 2007 14:10:26 +0000 (14:10 +0000)
SVN Revision: 1074

src/odbc/odbc_queries.erl

index 2230729620304e566f93cbbb3321cb0a9e623283..98e074b389b4e6cbed856ebb0aa134161a08b222 100644 (file)
@@ -371,14 +371,13 @@ get_db_type() ->
     mssql.
 
 %% Queries can be either a fun or a list of queries
-sql_transaction(_LServer, Queries) when is_list(Queries) ->
+sql_transaction(LServer, Queries) when is_list(Queries) ->
     %% SQL transaction based on a list of queries
     %% This function automatically 
     F = fun() ->
        lists:foreach(fun(Query) ->
-                             sql_query(Query)
-                     end,
-                     Queries)
+               ejabberd_odbc:sql_query(LServer, Query)
+       end, Queries)
       end,
     {atomic, catch F()};
 sql_transaction(_LServer, FQueries) ->