Call sqlite3_clear_bindings() in bind() to reset parameters

Closes #1063
This commit is contained in:
Yasuhiro Matsumoto
2026-03-17 01:03:05 +09:00
committed by mattn
parent 5a1f4d3045
commit 8c99a68554
2 changed files with 44 additions and 0 deletions

View File

@@ -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 {