Compare commits

..

1 Commits

Author SHA1 Message Date
Simon Ser ad08b07ade
Merge 8a3f369b62 into 846fea6c14 2024-10-01 13:24:57 +09:00
1 changed files with 0 additions and 1 deletions

View File

@ -930,7 +930,6 @@ func (c *SQLiteConn) query(ctx context.Context, query string, args []driver.Name
s.(*SQLiteStmt).cls = true s.(*SQLiteStmt).cls = true
na := s.NumInput() na := s.NumInput()
if len(args)-start < na { if len(args)-start < na {
s.Close()
return nil, fmt.Errorf("not enough args to execute query: want %d got %d", na, len(args)-start) return nil, fmt.Errorf("not enough args to execute query: want %d got %d", na, len(args)-start)
} }
// consume the number of arguments used in the current // consume the number of arguments used in the current