Fix handling ejabberd_sql:sql_transaction result (#1584)

This commit is contained in:
Badlop 2017-03-08 16:22:13 +01:00
parent dd11ed82d7
commit b0a950b6dd
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ export(LServer, Table, IO, ConvertFun) ->
output(_LServer, _Table, _IO, []) ->
ok;
output(LServer, _Table, sql, SQLs) ->
ejabberd_sql:sql_transaction(LServer, SQLs);
{atomic, ok} = ejabberd_sql:sql_transaction(LServer, SQLs),
ok;
output(_LServer, Table, Fd, SQLs) ->
file:write(Fd, ["-- \n-- Mnesia table: ", atom_to_list(Table),
"\n--\n", SQLs]).