This project is archived and is in readonly mode.
[PATCH] made #validates_numericality_of reject huge numbers which parse as infinity
Reported by Aliaksey Kandratsenka | October 4th, 2008 @ 03:42 PM | in 2.x
Some large numbers like 1E400 parse like infinity. I want those to be rejected by #assert_numericality_of.
There's a related issue in mysql bindings which simply segfault when infinity is being inserted into float column.
Comments and changes to this ticket
-
Jeremy Kemper October 4th, 2008 @ 04:25 PM
- State changed from new to invalid
"Don't apply this. I think it breaks #validates_numericality_of for big decimals. I think I'll have to add :float and :need_finite options to satisfy my needs. BTW, how can I mark this as invalid ?"
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>