New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle infinity value in PostgreSQL range type #31617

Merged
merged 1 commit into from Jan 3, 2018

Conversation

Projects
None yet
2 participants
@y-yagi
Member

y-yagi commented Jan 2, 2018

An empty string is an invalid value in Ruby's range class. So need to handle Float::INFINITY as it is and cast it in encode_range.

Fixes #31612

Correctly handle infinity value in PostgreSQL range type
An empty string is an invalid value in Ruby's range class.
So need to handle `Float::INFINITY` as it is and cast it in
`encode_range`.

Fixes #31612
@kamipo

kamipo approved these changes Jan 3, 2018

@y-yagi y-yagi merged commit bce675e into rails:master Jan 3, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
codeclimate All good!
Details

@y-yagi y-yagi deleted the y-yagi:fix_31612 branch Jan 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment