Call sqlite3_clear_bindings() in bind() to reset parameters
Closes #1063
This commit is contained in:
committed by
mattn
parent
5a1f4d3045
commit
8c99a68554
@@ -1958,6 +1958,8 @@ func (s *SQLiteStmt) bind(args []driver.NamedValue) error {
|
||||
return s.c.lastError()
|
||||
}
|
||||
|
||||
C.sqlite3_clear_bindings(s.s)
|
||||
|
||||
bindIndices := make([][3]int, len(args))
|
||||
prefixes := []string{":", "@", "$"}
|
||||
for i, v := range args {
|
||||
|
||||
Reference in New Issue
Block a user