Yield all rows matching this dataset.
# File lib/sequel/adapters/mysql2.rb, line 139 def fetch_rows(sql) execute(sql) do |r| if identifier_output_method cols = r.fields @columns = cols2 = cols.map{|c| output_identifier(c.to_s)} cs = cols.zip(cols2) r.each(:cast_booleans=>convert_tinyint_to_bool?) do |row| h = {} cs.each do |a, b| h[b] = row[a] end yield h end else @columns = r.fields r.each(:cast_booleans=>convert_tinyint_to_bool?){|h| yield h} end end self end