fallback for sqlite3_clear_bindings
Work with older SQLite, such as the one with Fedora 6 Closes #769 Merge to v6.5
This commit is contained in:
parent
dda791c8cb
commit
51061c0829
|
@ -160,7 +160,14 @@
|
|||
(_fun _sqlite3_statement -> _int))
|
||||
|
||||
(define-sqlite sqlite3_clear_bindings
|
||||
(_fun _sqlite3_statement -> _int))
|
||||
(_fun _sqlite3_statement -> _int)
|
||||
#:fail (lambda ()
|
||||
;; Old versions of SQLite don't have sqlite3_clear_bindings().
|
||||
;; With this fallback, some SQLite internal parameter
|
||||
;; buffers won't get cleared at the end of statement
|
||||
;; execution; they'll get cleared when the statement is
|
||||
;; next executed or when the statement is closed instead.
|
||||
(lambda (stmt) 0)))
|
||||
|
||||
;; ----------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user