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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98d11692807aa7a78ce880177f55d0722b610e2f
4
- data.tar.gz: 0f253c7b9282cd760924b1d0cb4d21491635a020
3
+ metadata.gz: d05dbf2048f880c79dec135ead3785d764fffdcc
4
+ data.tar.gz: 61bdb9487f8c314a7a72554bf0b8c50fb985ba4f
5
5
  SHA512:
6
- metadata.gz: f973445367622d6df373ba324b92df866230c79aa66ef8235e52550fd4e9122d823cba1bab41147b381fa68f6f547392e9fa61c41975d8b7267942062e64642e
7
- data.tar.gz: 0ace70721cb46bcc02ebca3a260eac587992eea17b55e41200d53aa58ba3a0690d665c175d31beae410ab42dbcef46d9a3ab57e3cf3bb383a03174c121c9027b
6
+ metadata.gz: d28a58a7bb2a3ba59dee718907fe22671f9fc1894d7bd86101b3ff0e06c26e21423d6c68fddbadcb096a80a1ab1f03c89172d9afc152a9d55ea2c3ee6f6418e8
7
+ data.tar.gz: ce042b782e5b7f4f0aacba0fd171ed6cac464203850cfc2de1bc074bb6899ca8e0cba851dae1e18ecf243bbb81911451ccc466027608377b28378791a725df3e
@@ -120,7 +120,9 @@ module MultiInsert
120
120
  #
121
121
  # @return [nil | Array<Integer> | Array<Array<String | Number | Boolean>>]
122
122
  def execute
123
- result = ActiveRecord::Base.connection.execute(to_sql)
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
@@ -1,4 +1,4 @@
1
1
  module MultiInsert
2
2
  # The version number for MultiInsert.
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
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
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-10 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler