Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] made #validates_numericality_of reject huge numbers which parse as infinity

#1172

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.

Reported by Aliaksey Kandratsenka · October 4th, 2008 @ 03:42 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • 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 ?"

    October 4th, 2008 @ 04:25 PM