rsim / oracle-enhanced

Oracle enhaced adapter for ActiveRecord
MIT License
545 stars 308 forks source link

JDBC_Connection.rb get_ruby_value_from_result_set doesn't handle BINARY_DOUBLE #2302

Open mikemattball opened 2 years ago

mikemattball commented 2 years ago

Steps to reproduce

Connect to a database that has a BINARY_DOUBLE data type. Run a select query using that column.

Expected behavior

The actual value from the column should be returned.

Actual behavior

Nil is returned since the type_name of BINARY_DOUBLE is not handled in get_ruby_value_from_result_set.

This is quickly fixed by adding :BINARY_DOUBLE to the :BINARY_FLOAT case.

System configuration

Rails version: 6.1.6

Oracle enhanced adapter version: 6.1.6

Ruby version: JRuby 9.2.20.0

Oracle Database version: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production