mirror of
https://github.com/github/rails.git
synced 2026-01-29 08:18:03 -05:00
Fix sqlite adapter to work with the quoted table names returned by later versions of sqlite3.
This commit is contained in:
committed by
Michael Koziarski
parent
3b93ca221d
commit
a2028a7d7b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user