mysql2-aurora 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: 7aba7e92a9390880096853ce979ea85de81a8e2b4e055ff952ac1ee7b070e0f3
4
- data.tar.gz: 0bac5961903f4723608a43ba16c46a9d51d9be8181c2dc83c46224f01e77b25c
3
+ metadata.gz: 972a962b2b6b5800dec782880b976e7ea1ef879f089f968918d1bd079392fbd0
4
+ data.tar.gz: b1350ad7adfca369fa7188b08d9ba59dd95a04a76a5675602d8f53f038f607e0
5
5
  SHA512:
6
- metadata.gz: 671cd2029f7e47a9e08c2951e60dc98f1f378ce0f222f9475127e037f01d6453540ca5defc0c999fe2e91ee696492c2006a42b968a2c82758d2615b0d8276dac
7
- data.tar.gz: 1327aed779d6e4876ff7a32f8d5aa993c3c0213609eac6afe1da7b6b282bc83d832d117d0a52c749625948ef8d80b205ce396989763a9204a22481a296739751
6
+ metadata.gz: 84cdd45141f51fdbcea71139c91cfb83026675b1f7297be6adc67e0dbcdf98a895575e650c9deb74ce72aa3a65adddbd227f8b245fcce1e6c9d899fc8e7b441e
7
+ data.tar.gz: 5fdee14fba2c43e1e6f40fa1404a7d12d4d57a4c782c06f8dbbd5c08f08f948b32fab9e89107553048e6b0084b49aa40630cfd93227405f9a4f10bfddab7b9ef
@@ -45,12 +45,16 @@ module Mysql2
45
45
  # Reconnect to database and Set `@client`
46
46
  # @note If client is not connected, Connect to database.
47
47
  def reconnect!
48
+ query_options = (@client&.query_options&.dup || {})
49
+
48
50
  begin
49
51
  @client&.close
50
52
  rescue StandardError
51
53
  nil
52
54
  end
55
+
53
56
  @client = Mysql2::Aurora::ORIGINAL_CLIENT_CLASS.new(@opts)
57
+ @client.query_options.merge!(query_options)
54
58
  end
55
59
 
56
60
  # Delegate method call to client.
@@ -3,6 +3,6 @@ module Mysql2
3
3
  # Major Version: Support `mysql2` major version.
4
4
  # Minor Version: Support `mysql2` minor version.
5
5
  # Tiny Version: Mysql2::Aurora version.
6
- VERSION = '0.5.0'.freeze
6
+ VERSION = '0.5.1'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql2-aurora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alfa-jpn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-15 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2