This commit is contained in:
Yasuhiro Matsumoto
2017-08-28 18:58:02 +09:00
parent a97e7bb12f
commit d40d490543
2 changed files with 93 additions and 0 deletions

View File

@@ -811,6 +811,7 @@ func (s *SQLiteStmt) Close() error {
return errors.New("sqlite statement with already closed database connection")
}
rv := C.sqlite3_finalize(s.s)
s.s = nil
if rv != C.SQLITE_OK {
return s.c.lastError()
}