diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-13 15:34:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-14 13:37:39 -0700 |
commit | 27f8c57f5f88304212a00cb8e32f8227755a7265 (patch) | |
tree | 9dfcb2c183677886e71a91bf3b9ccbe1909acb20 /activerecord/lib | |
parent | 8571facea3b51717b3c57c50b2deae5dbf997c6e (diff) | |
download | rails-27f8c57f5f88304212a00cb8e32f8227755a7265.tar.gz rails-27f8c57f5f88304212a00cb8e32f8227755a7265.tar.bz2 rails-27f8c57f5f88304212a00cb8e32f8227755a7265.zip |
inserting big decimals as strings works consistently among dbs, so use string form
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index 5634e53e80..3de850ec9e 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -66,7 +66,7 @@ module ActiveRecord end # BigDecimals need to be put in a non-normalized form and quoted. when nil then nil - when BigDecimal then value.to_f + when BigDecimal then value.to_s('F') when Numeric then value when Date, Time then quoted_date(value) when Symbol then value.to_s |