Ensure close of statement

This commit is contained in:
Jonne Haß 2015-08-19 18:21:04 +02:00
parent 5b08d2f48b
commit 22d83727df
2 changed files with 31 additions and 0 deletions

View file

@ -71,6 +71,7 @@ class SQLite3::Statement
def execute(binds : Enumerable | Slice(UInt8), &block)
result_set = execute(binds)
yield result_set
ensure
close
end