rails-sqlserver/tiny_tds — Issue #57: Calling Result#fields before Result#each(:symbolize_keys => true) results in string keys
Author: jeremyevans
Created: 2011-11-03 19:08:25+00:00
State: open

This seems like a bug to me:

irb(main):002:0> c
=> #
irb(main):003:0> result = c.execute("SELECT 1 AS a")
=> #
irb(main):004:0> result.fields
=> ["a"]
irb(main):005:0> result.each(:symbolize_keys=>true).to_a
=> [{"a"=>1}]