symbolize keys for the Sequel adapter

The "schema_parse_table" method in
lib/sequel/adapters/shared/mysql.rb of Sequel 3.12.1
depends on symbolized keys.
This commit is contained in:
Eric Wong 2010-06-28 17:20:52 -07:00 committed by Brian Lopez
parent 3468f12a83
commit 77cd0c435d

View File

@ -191,7 +191,7 @@ module Sequel
# instead of yielding results for all statements as hashes. # instead of yielding results for all statements as hashes.
def fetch_rows(sql, &block) def fetch_rows(sql, &block)
execute(sql) do |r| execute(sql) do |r|
r.each &block r.each(:symbolize_keys => true, &block)
end end
self self
end end