Rails为Float列返回null

时间:2017-03-20 07:25:23

标签: oracle12c ruby-on-rails-4.2

我有一个带有 Float 类型列的Oracle表,我正在使用Ruby on Rails从该表中检索数据。浮动列的数据可以保存在Oracle中,没有任何问题,但在检索时,数据将为零。我使用' activerecord-oracle_enhanced-adapter '版本1.6.7连接到Oracle。

enter image description here

1 个答案:

答案 0 :(得分:0)

问题由oracle-enhanced贡献者解决。

<强>问题:
https://github.com/rsim/oracle-enhanced/issues/1244

<强>溶液
https://github.com/rsim/oracle-enhanced/pull/1254