diff --git a/sqlite.go b/sqlite.go index 37fde4f..a3a0f12 100644 --- a/sqlite.go +++ b/sqlite.go @@ -604,14 +604,9 @@ func (s *stmt) query(ctx context.Context, args []driver.NamedValue) (r driver.Ro } if n != 0 { - a, err := s.c.bind(pstmt, n, args) - if err != nil { + if allocs, err = s.c.bind(pstmt, n, args); err != nil { return err } - - if len(a) != 0 { - allocs = append(allocs, a...) - } } rc, err := s.c.step(pstmt)