Permalink
Browse files

reset a query of dbd.sqlite3 when it is executed once.

  • Loading branch information...
fukamachi committed May 6, 2012
1 parent 41e30a9 commit 74f434cefe287df6a0a11cfac95cdd4bca8efc34
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/dbd/sqlite3.lisp
View
@@ -31,6 +31,8 @@
:prepared (prepare-statement (connection-handle conn) sql)))
(defmethod execute-using-connection ((conn <dbd-sqlite3-connection>) (query <dbi-query>) params)
+ (reset-statement (query-prepared query))
+ (clear-statement-bindings (query-prepared query))
(let ((count 0))
(dolist (param params)
(bind-parameter (query-prepared query) (incf count) param)))

0 comments on commit 74f434c

Please sign in to comment.