提交 2c3aab32 编写于 作者: A Aaron Patterson

PostgreSQLAdapter#select_raw removing dead code

上级 79e9f4a3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册