activerecord-fb-adapter 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -603,7 +603,7 @@ module ActiveRecord
|
|
603
603
|
end
|
604
604
|
log(expand(sql, args), name) do
|
605
605
|
fields, rows = @connection.execute(sql, *args) { |cursor| [cursor.fields, cursor.fetchall] }
|
606
|
-
cols = fields.map { |f| f.name }
|
606
|
+
cols = fields.map { |f| f.name } if fields.respond_to?(:map)
|
607
607
|
ActiveRecord::Result.new(cols, rows)
|
608
608
|
end
|
609
609
|
end
|