Skip to content

Commit

Permalink
Don't flatten row array before passing to Hash#[]
Browse files Browse the repository at this point in the history
Fixes #154
  • Loading branch information
tenderlove committed Jan 24, 2024
1 parent 44ab2aa commit abaf8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sqlite3/resultset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def next_hash
row = @stmt.step
return nil if @stmt.done?

Hash[*@stmt.columns.zip(row).flatten]
Hash[@stmt.columns.zip(row)]
end
end

Expand Down

0 comments on commit abaf8b2

Please sign in to comment.