Skip to content
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

postgresql adapter should quote not a number and infinity correctly for float columns #3713

Merged
merged 1 commit into from
May 4, 2012

Conversation

kf8a
Copy link
Contributor

@kf8a kf8a commented Nov 21, 2011

a fix to make the postgresql adapter quote NaN and Infinity in float columns.

P.S. I don't know what the special case with the :datetime column is about, but i've left it in as the first condition, so that it would get triggered before it checks for just infinity? or nan?

@isaacsanders
Copy link
Contributor

Any thoughts on this?

@isaacsanders
Copy link
Contributor

@tenderlove @josevalim What are your thoughts on this?

tenderlove added a commit that referenced this pull request May 4, 2012
postgresql adapter should quote not a number and infinity correctly for float columns
@tenderlove tenderlove merged commit 58950ee into rails:master May 4, 2012
@ericboehs
Copy link

This should also work with a :date type (not just :datetime).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants