Skip to content

Commit ce0946d

Browse files
committed
Added interface to sqlite3_clear_bindings().
1 parent 35fbebb commit ce0946d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/sqlite.f90

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ module sqlite
116116
public :: sqlite3_bind_int64
117117
public :: sqlite3_bind_text
118118
public :: sqlite3_bind_text_
119+
public :: sqlite3_clear_bindings
119120
public :: sqlite3_close
120121
public :: sqlite3_column_double
121122
public :: sqlite3_column_int
@@ -205,7 +206,15 @@ function sqlite3_bind_text_(stmt, idx, val, l, destructor) bind(c, name='sqlite3
205206
integer(kind=c_int) :: sqlite3_bind_text_
206207
end function sqlite3_bind_text_
207208

208-
! int sqlite3_close(sqlite3*)
209+
! int sqlite3_clear_bindings(sqlite3_stmt *stmt)
210+
function sqlite3_clear_bindings(stmt) bind(c, name='sqlite3_clear_bindings')
211+
import :: c_int, c_ptr
212+
implicit none
213+
type(c_ptr), intent(in), value :: stmt
214+
integer(kind=c_int) :: sqlite3_clear_bindings
215+
end function sqlite3_clear_bindings
216+
217+
! int sqlite3_close(sqlite3 *db)
209218
function sqlite3_close(db) bind(c, name='sqlite3_close')
210219
import :: c_int, c_ptr
211220
implicit none

0 commit comments

Comments
 (0)