mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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]
This commit is contained in:
committed by
Michael Koziarski
parent
2def5b6314
commit
4cb3d27443
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user