diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-04-21 11:45:48 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-04-21 11:45:48 +1200 |
commit | a2028a7d7bf4336d01656d947df77ee504927db0 (patch) | |
tree | 711809a25b4f65eefc985faf45d9f9b800833f04 /activerecord | |
parent | 3b93ca221d3a1b777bd880c18f52010cbd56c18c (diff) | |
download | rails-a2028a7d7bf4336d01656d947df77ee504927db0.tar.gz rails-a2028a7d7bf4336d01656d947df77ee504927db0.tar.bz2 rails-a2028a7d7bf4336d01656d947df77ee504927db0.zip |
Fix sqlite adapter to work with the quoted table names returned by later versions of sqlite3.
Diffstat (limited to 'activerecord')
-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 92d11e56e1..59a51c0279 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -257,7 +257,7 @@ module ActiveRecord record = {} row.each_key do |key| if key.is_a?(String) - record[key.sub(/^\w+\./, '')] = row[key] + record[key.sub(/^"?\w+"?\./, '')] = row[key] end end record |