forked from mirror/go-sqlcipher
close statement
This commit is contained in:
parent
6f2749a3ca
commit
a554cf198f
|
@ -429,6 +429,7 @@ func (c *SQLiteConn) exec(ctx context.Context, query string, args []namedValue)
|
|||
if s.(*SQLiteStmt).s != nil {
|
||||
na := s.NumInput()
|
||||
if len(args) < na {
|
||||
s.Close()
|
||||
return nil, fmt.Errorf("Not enough args to execute query. Expected %d, got %d.", na, len(args))
|
||||
}
|
||||
for i := 0; i < na; i++ {
|
||||
|
|
Loading…
Reference in New Issue