Tussen commitje:

This commit is contained in:
Maas-Maarten Zeeman
2011-10-21 11:14:36 +02:00
parent 9347c2df55
commit 31a23dc46c
3 changed files with 53 additions and 13 deletions

View File

@@ -35,10 +35,10 @@ open(Filename, Timeout) ->
%% @doc Execute Sql statement
%%
exec(Sql, Db) ->
exec(Sql, Db, ?DEFAULT_TIMEOUT).
exec(Db, Sql) ->
exec(Db, Sql, ?DEFAULT_TIMEOUT).
exec(Sql, Db, Timeout) ->
exec(Db, Sql, Timeout) ->
Ref = make_ref(),
ok = esqlite_exec(Db, Ref, self(), Sql),
receive_answer(Ref, Timeout).