Permalink
Browse files

Fix sqlite adapter to work with the quoted table names returned by la…

…ter versions of sqlite3.
  • Loading branch information...
1 parent 3b93ca2 commit a2028a7d7bf4336d01656d947df77ee504927db0 @fcheung fcheung committed with NZKoz Apr 20, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -257,7 +257,7 @@ def select(sql, name = nil) #:nodoc:
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

0 comments on commit a2028a7

Please sign in to comment.