# File lib/sqlite3/resultset.rb, line 177 def next_hash row = @stmt.step return nil if @stmt.done? # FIXME: type translation is deprecated, so this can be removed # in 2.0 if @db.type_translation row = @stmt.types.zip(row).map do |type, value| @db.translator.translate( type, value ) end end # FIXME: this can be switched to a regular hash in 2.0 row = HashWithTypesAndFields[*@stmt.columns.zip(row).flatten] # FIXME: these methods are deprecated for version 2.0, so we can remove # this code in 2.0 row.fields = @stmt.columns row.types = @stmt.types row end