Commit 18275e6
committed
config processing executing code before config processing is done
This appears to be a strange coincidence that when config[:reconnect]
was moved from https://github.com/jruby/activerecord-jdbc-adapter/blob/64157d6e5dfcd64471249d797f87dc1bd255a373/lib/arjdbc/mysql/connection_methods.rb#L65
it lost the local variable 'reconnect' and it changed to calling the
method 'reconnect'. Creating this method early would cause default
mysql config to crash since the @connection_parameters was not yet
defined.1 parent 93bf542 commit 18275e6
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments