diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-30 06:12:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-30 06:12:50 -0700 |
commit | 2e07260f36f3e192e5f0b51b287700b419fd1019 (patch) | |
tree | 594022e1d544d05034b545cbc3d56480f1c08e0e | |
parent | 6cf44a1bd64ba10497742d70ad78fe68faa16e99 (diff) | |
download | rails-2e07260f36f3e192e5f0b51b287700b419fd1019.tar.gz rails-2e07260f36f3e192e5f0b51b287700b419fd1019.tar.bz2 rails-2e07260f36f3e192e5f0b51b287700b419fd1019.zip |
columns are always strings
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 0844e5d7d7..394daef473 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -317,7 +317,7 @@ module ActiveRecord exec(sql, name, binds).map do |row| record = {} row.each do |key, value| - record[key.sub(/^"?\w+"?\./, '')] = value if key.is_a?(String) + record[key.sub(/^"?\w+"?\./, '')] = value end record end |