We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6315e4c commit 17210c3Copy full SHA for 17210c3
lib/arjdbc/mysql/connection_methods.rb
@@ -31,6 +31,12 @@ def mysql_connection(config)
31
properties['useUnicode'] = 'true' unless properties.key?('useUnicode') # otherwise platform default
32
encoding = config.key?(:encoding) ? config[:encoding] : 'utf8'
33
properties['characterEncoding'] = encoding if encoding
34
+ if ! ( reconnect = config[:reconnect] ).nil?
35
+ properties['autoReconnect'] ||= reconnect.to_s
36
+ # properties['maxReconnects'] ||= '3'
37
+ # with reconnect fail-over sets connection read-only (by default)
38
+ # properties['failOverReadOnly'] ||= 'false'
39
+ end
40
41
jdbc_connection(config)
42
end
0 commit comments