activerecord-fb-adapter 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|