Commit e8065407 authored by gwenn's avatar gwenn
parent c1df3127
......@@ -919,6 +919,9 @@ func (s *Stmt) finalize() error {
if s == nil {
return errors.New("nil sqlite statement")
}
if s.c == nil || s.c.db == nil {
return errors.New("sqlite statement with already closed database connection")
}
rv := C.sqlite3_finalize(s.stmt)
s.stmt = nil
if rv != C.SQLITE_OK {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment