correct the insert function spec

This commit is contained in:
qingliangcn
2013-11-28 00:29:25 +08:00
parent a921bd65b2
commit fc102d9024
2 changed files with 3 additions and 3 deletions

View File

@@ -202,13 +202,13 @@ exec(Sql, {connection, _Ref, Connection}, Timeout) ->
%% @doc Insert records, returns the last rowid.
%%
%% @spec insert(iolist(), connection()) -> integer() | {error, error_message()}
%% @spec insert(iolist(), connection()) -> {ok, integer()} | {error, error_message()}
insert(Sql, Connection) ->
insert(Sql, Connection, ?DEFAULT_TIMEOUT).
%% @doc Insert
%%
%% @spec insert(iolist(), connection(), timeout()) -> integer() | {error, error_message()}
%% @spec insert(iolist(), connection(), timeout()) -> {ok, integer()} | {error, error_message()}
insert(Sql, {connection, _Ref, Connection}, Timeout) ->
Ref = make_ref(),
ok = esqlite3_nif:insert(Connection, Ref, self(), Sql),