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] Remove NULLS FIRST/LAST. Closes #5152 #5168

Merged
merged 1 commit into from
Feb 27, 2012

Conversation

kennyj
Copy link
Contributor

@kennyj kennyj commented Feb 25, 2012

When we use the postgresql adapter and construct distinct select clause, we have a problem with NULLS first/last.

without fix
=> posts.updater_idnulls first AS alias_0
with fix
=> posts.updater_id AS alias_0

closes #5152

This original issue was reported for 3-2-stable.

tenderlove added a commit that referenced this pull request Feb 27, 2012
[PostgreSQL] Remove NULLS FIRST/LAST. Closes #5152
@tenderlove tenderlove merged commit 699e460 into rails:master Feb 27, 2012
kennyj added a commit to kennyj/rails that referenced this pull request Aug 2, 2012
…d by postgresql_adapter.rb while creating distincts.
carlosantoniodasilva added a commit that referenced this pull request Aug 2, 2012
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.

postgresql_adapter+def distinct+nulls
2 participants