Because infinity function is only used there£¬and the result of this function here is -1

Date: Wed, 27 Feb 2013 04:21:26 -0800
From: notifications@github.com
To: rails@noreply.github.com
CC: jiebour@hotmail.com
Subject: Re: [rails] Use polymorphism instead of case/when. Not use symbols to initialize Range any more. (#9455)

In activerecord/lib/active_record/connection_adapters/postgresql/oid.rb:
>            end
>  
>            def extract_bounds(value)
>              from, to = value[1..-2].split(',')
>              {
> -              from:          (value[1] == ',' || from == '-infinity') ? infinity(:negative => true) : from,
> +              from:          (value[1] == ',' || from == '-infinity') ? -1 : from,

Why this change?

¡ª
Reply to this email directly or view it on GitHub.