mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Step through multiple row results
This commit is contained in:
parent
7478bc854b
commit
d18bf51109
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ class SQLite3::Statement < DB::Statement
|
|||
end
|
||||
|
||||
# exec
|
||||
step = nil
|
||||
loop do
|
||||
step = LibSQLite3::Code.new LibSQLite3.step(self)
|
||||
break unless step == LibSQLite3::Code::ROW
|
||||
end
|
||||
raise Exception.new(sqlite3_connection) unless step == LibSQLite3::Code::DONE
|
||||
|
||||
rows_affected = LibSQLite3.changes(sqlite3_connection).to_i64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue