mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
better closing checks (#23)
This commit is contained in:
parent
5eb85a98c6
commit
616af3ba1d
4 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ class SQLite3::Connection < DB::Connection
|
|||
|
||||
def do_close
|
||||
super
|
||||
LibSQLite3.close_v2(self)
|
||||
check LibSQLite3.close(self)
|
||||
end
|
||||
|
||||
# :nodoc:
|
||||
|
|
|
@ -48,4 +48,5 @@ lib LibSQLite3
|
|||
|
||||
fun finalize = sqlite3_finalize(stmt : Statement) : Int32
|
||||
fun close_v2 = sqlite3_close_v2(SQLite3) : Int32
|
||||
fun close = sqlite3_close(SQLite3) : Int32
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ class SQLite3::Statement < DB::Statement
|
|||
DB::ExecResult.new rows_affected, last_id
|
||||
end
|
||||
|
||||
protected def on_close
|
||||
protected def do_close
|
||||
super
|
||||
check LibSQLite3.finalize(self)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue