Permalink
Browse files

PostgreSQLAdapter#select_raw removing dead code

  • Loading branch information...
1 parent 79e9f4a commit 2c3aab32dd064c2812088c1226562ee522d55d48 @tenderlove tenderlove committed Jul 13, 2010
Showing with 0 additions and 3 deletions.
  1. +0 −3 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -951,7 +951,6 @@ def select_raw(sql, name = nil)
results = result_as_array(res)
fields = res.fields
rows = results.map do |row|
- hashed_row = {}
row.each_with_index do |cell, cell_index|
# If this is a money type column and there are any currency symbols,
# then strip them off. Indeed it would be prettier to do this in
@@ -969,8 +968,6 @@ def select_raw(sql, name = nil)
row[cell_index] = cell.gsub(/[^-\d,]/, '').sub(/,/, '.')
end
end
-
- hashed_row[fields[cell_index]] = cell
end
row
end

0 comments on commit 2c3aab3

Please sign in to comment.