aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-13 15:34:08 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-14 13:37:39 -0700
commit27f8c57f5f88304212a00cb8e32f8227755a7265 (patch)
tree9dfcb2c183677886e71a91bf3b9ccbe1909acb20 /activerecord/lib/active_record/connection_adapters
parent8571facea3b51717b3c57c50b2deae5dbf997c6e (diff)
downloadrails-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/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/quoting.rb2
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