Michael A. Schoen wrote:
Michael Koziarski wrote:
It appears to still use floats for 'float' columns, does oracle not have one?

Not really. Oracle uses "NUMBER" for all numeric columns. There's also a "FLOAT" type, but it's not typically used (and it's effectively the same as NUMBER).

In my patch to make this work for Oracle I'll make NUMBER (w/ no precision or scale) translate to :float.

This seems a good example of a situation where Rails needs its own (optional) mapping metadata. One application may specify storage of a NUMBER with high precision, wanting to do floating-point calculations with it, whereas another application might need to treat similarly-specified NUMBERs as BigDecimal.

regards

  Justin Forder
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to