Skip to content

Commit 74763cb

Browse files
authored
Merge pull request #484 from sparklemotion/faster-hash
Don't flatten row array before passing to Hash#[]
2 parents f5f6859 + 13a5e35 commit 74763cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlite3/resultset.rb

+1-1
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)