Skip to content

Commit

Permalink
don't quote decimal values for mysql. It doesn't make sence and break…
Browse files Browse the repository at this point in the history
…s in newer versions of mysql
  • Loading branch information
Aliaksey Kandratsenka committed Oct 4, 2008
1 parent 1bc267d commit 1b552bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -218,7 +218,7 @@ def quote(value, column = nil)
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
Expand Down

0 comments on commit 1b552bd

Please sign in to comment.