-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Description
In class OracleEnhanced::DatabaseStatements line 57 a method if cursor.select_statement? is called.
This method select_statement?exists for OracleEnhanced::OCIConnection::Cursor but is missed for OracleEnhanced::JDBCConnection::Cursor.
Thus using ActiveRecord with JRuby 10.0.0.1 fails with
>> Dual.select "SELECT SYSDATE FROM DUAL"
An error occurred when inspecting the object: #<ActiveRecord::StatementInvalid: NoMethodError: undefined method 'select_statement?' for an instance of ActiveRecord::ConnectionAdapters::OracleEnhanced::JDBCConnection::Cursor>
An error occurred when running Kernel#inspect: #<ActiveRecord::StatementInvalid: NoMethodError: undefined method 'select_statement?' for an instance of ActiveRecord::ConnectionAdapters::OracleEnhanced::JDBCConnection::Cursor>
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/bundler/gems/oracle-enhanced-695537daabd5/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:57:in 'block in raw_execute'
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/gems/activesupport-8.0.2/lib/active_support/notifications/instrumenter.rb:58:in 'instrument'
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/bundler/gems/oracle-enhanced-695537daabd5/lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb:35:in 'log'
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/bundler/gems/oracle-enhanced-695537daabd5/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:33:in 'block in raw_execute'
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/gems/activerecord-8.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:1015:in 'block in with_raw_connection'
/Users/pramm/.rubies/jruby-10.0.0.1/lib/ruby/gems/shared/gems/activesupport-8.0.2/lib/active_support/concurrency/null_lock.rb:9:in 'synchronize'
Metadata
Metadata
Assignees
Labels
No labels