aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2008-09-06 11:22:01 +0300
committerMichael Koziarski <michael@koziarski.com>2008-10-04 17:48:13 +0200
commit4cb3d27443fa30fde528f07658e76537f38a0661 (patch)
tree9a37a3bbe65f770e7b841eb01d3bc6f532286af5 /activerecord
parent2def5b6314e1fbbaa789d1311e488ffac498703d (diff)
downloadrails-4cb3d27443fa30fde528f07658e76537f38a0661.tar.gz
rails-4cb3d27443fa30fde528f07658e76537f38a0661.tar.bz2
rails-4cb3d27443fa30fde528f07658e76537f38a0661.zip
don't quote decimal values for mysql. It doesn't make sense and breaks in newer versions of mysql
Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1168 state:committed]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
index 3aa27bfc99..1e452ae88a 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -218,7 +218,7 @@ module ActiveRecord
s = column.class.string_to_binary(value).unpack("H*")[0]
"x'#{s}'"
elsif value.kind_of?(BigDecimal)
- "'#{value.to_s("F")}'"
+ value.to_s("F")
else
super
end