activerecord-fb-adapter 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -602,9 +602,13 @@ module ActiveRecord
|
|
602
602
|
args = binds.map { |col, val| type_cast(val, col) } + args
|
603
603
|
end
|
604
604
|
log(expand(sql, args), name) do
|
605
|
-
|
606
|
-
|
607
|
-
|
605
|
+
result, rows = @connection.execute(sql, *args) { |cursor| [cursor.fields, cursor.fetchall] }
|
606
|
+
if result.respond_to?(:map)
|
607
|
+
cols = result.map { |col| col.name }
|
608
|
+
ActiveRecord::Result.new(cols, rows)
|
609
|
+
else
|
610
|
+
result
|
611
|
+
end
|
608
612
|
end
|
609
613
|
end
|
610
614
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-fb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fb
|