From 77cd0c435d8699cb0c0e813b39229822c86119c4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Jun 2010 17:20:52 -0700 Subject: [PATCH] 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. --- lib/sequel/adapters/mysql2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sequel/adapters/mysql2.rb b/lib/sequel/adapters/mysql2.rb index fea167e..09d49f1 100644 --- a/lib/sequel/adapters/mysql2.rb +++ b/lib/sequel/adapters/mysql2.rb @@ -191,7 +191,7 @@ module Sequel # instead of yielding results for all statements as hashes. def fetch_rows(sql, &block) execute(sql) do |r| - r.each &block + r.each(:symbolize_keys => true, &block) end self end