Skip to content

Commit 13a5e35

Browse files
committed
Don't flatten row array before passing to Hash#[]
Fixes #154
1 parent 44ab2aa commit 13a5e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlite3/resultset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def next_hash
8686
row = @stmt.step
8787
return nil if @stmt.done?
8888

89-
Hash[*@stmt.columns.zip(row).flatten]
89+
@stmt.columns.zip(row).to_h
9090
end
9191
end
9292

0 commit comments

Comments
 (0)