[PostgreSQL] Remove NULLS FIRST/LAST. Closes #5152 #5168

Merged
merged 1 commit into from Feb 27, 2012

Conversation

Projects
None yet
2 participants
Contributor

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

Merge pull request #5168 from kennyj/fix_5152
[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

Backport #5168 to 3-2-stable. Fix a problem that NULLS is ignored 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