-
Notifications
You must be signed in to change notification settings - Fork 328
Closed
Description
ActiveRecord.connection.verify! fails on Rails 7.1.0+ with ArgumentError: wrong number of arguments (given 1, expected 0) when reconnection is needed, because Rails 7.1 added an optional argument restore_transactions: false to the #reconnect! method which is used e.g. inside the #verify!.
This change has been implemented in rails/rails#44573 and it appeared in Rails 7.1.0beta1 for the first time.
Oracle Enhanced Driver Implementation
oracle-enhanced/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
Lines 470 to 475 in d5b3daf
| def reconnect! # :nodoc: | |
| super | |
| _connection.reset! | |
| rescue OracleEnhanced::ConnectionException => e | |
| @logger.warn "#{adapter_name} automatic reconnection failed: #{e.message}" if @logger | |
| end |
Rails 7.1.0beta1 Implementation
Rails 7.1.5.1 Implementation
Metadata
Metadata
Assignees
Labels
No labels