Open mikemattball opened 2 years ago
Connect to a database that has a BINARY_DOUBLE data type. Run a select query using that column.
The actual value from the column should be returned.
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.
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
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