Make sure the statement is reset after a in step. Fixes #10

This commit is contained in:
Maas-Maarten Zeeman
2014-06-16 22:24:59 +02:00
parent d0fb9156a8
commit 6428cec6dd
4 changed files with 153 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
%% @doc Low level erlang API for sqlite3 databases
%% Copyright 2011, 2012, 2013 Maas-Maarten Zeeman
%% Copyright 2011, 2012, 2013, 2014 Maas-Maarten Zeeman
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
insert/4,
prepare/4,
step/3,
reset/3,
finalize/3,
bind/4,
column_names/3,
@@ -91,6 +92,12 @@ prepare(_Db, _Ref, _Dest, _Sql) ->
step(_Stmt, _Ref, _Dest) ->
exit(nif_library_not_loaded).
%% @doc
%%
%% @spec reset(statement(), reference(), pid()) -> ok | {error, message()}
reset(_Stmt, _Ref, _Dest) ->
exit(nif_library_not_loaded).
%% @doc
%%
%%