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 +4 -4
- data/lib/mysql2/aurora.rb +4 -0
- data/lib/mysql2/aurora/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 972a962b2b6b5800dec782880b976e7ea1ef879f089f968918d1bd079392fbd0
|
4
|
+
data.tar.gz: b1350ad7adfca369fa7188b08d9ba59dd95a04a76a5675602d8f53f038f607e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84cdd45141f51fdbcea71139c91cfb83026675b1f7297be6adc67e0dbcdf98a895575e650c9deb74ce72aa3a65adddbd227f8b245fcce1e6c9d899fc8e7b441e
|
7
|
+
data.tar.gz: 5fdee14fba2c43e1e6f40fa1404a7d12d4d57a4c782c06f8dbbd5c08f08f948b32fab9e89107553048e6b0084b49aa40630cfd93227405f9a4f10bfddab7b9ef
|
data/lib/mysql2/aurora.rb
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|