multi_insert 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/multi_insert/query.rb +3 -1
- data/lib/multi_insert/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05dbf2048f880c79dec135ead3785d764fffdcc
|
4
|
+
data.tar.gz: 61bdb9487f8c314a7a72554bf0b8c50fb985ba4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28a58a7bb2a3ba59dee718907fe22671f9fc1894d7bd86101b3ff0e06c26e21423d6c68fddbadcb096a80a1ab1f03c89172d9afc152a9d55ea2c3ee6f6418e8
|
7
|
+
data.tar.gz: ce042b782e5b7f4f0aacba0fd171ed6cac464203850cfc2de1bc074bb6899ca8e0cba851dae1e18ecf243bbb81911451ccc466027608377b28378791a725df3e
|
data/lib/multi_insert/query.rb
CHANGED
@@ -120,7 +120,9 @@ module MultiInsert
|
|
120
120
|
#
|
121
121
|
# @return [nil | Array<Integer> | Array<Array<String | Number | Boolean>>]
|
122
122
|
def execute
|
123
|
-
|
123
|
+
ActiveRecord::Base.connection_pool.with_connection do |con|
|
124
|
+
result = con.execute(to_sql)
|
125
|
+
end
|
124
126
|
if @sql_returning.nil?
|
125
127
|
nil
|
126
128
|
else
|
data/lib/multi_insert/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_insert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nax
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|