Skip to content

Commit

Permalink
Fix sqlite adapter to work with the quoted table names returned by la…
Browse files Browse the repository at this point in the history
…ter versions of sqlite3.
  • Loading branch information
fcheung authored and NZKoz committed Apr 20, 2008
1 parent 3b93ca2 commit a2028a7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit a2028a7

Please sign in to comment.