-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
Problems arise using JDBC connection with branch 'release80'
OracleEnhancedAdapter.reconnect uses _connection.reset in line 448 but this method is not declared for JDBCConnection.
A monkey patch workaround works if mapping JDBCConnection.reset to JDBCConnection.reset!
But if the connection can't be reestablished by _connection.reset, then the call on connect in exception handler fails with
NameError: undefined local variable or method 'connect' for an instance of ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter
def reconnect
_connection.reset # tentative
rescue OracleEnhanced::ConnectionException
connect
end
Metadata
Metadata
Assignees
Labels
No labels