GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
When we use the postgresql adapter and construct distinct select clause, we have a problem with NULLS first/last.
distinct select clause
=> posts.updater_idnulls first AS alias_0
=> posts.updater_id AS alias_0
This original issue was reported for 3-2-stable.
Remove NULLS FIRST/LAST. closes #5152
Merge pull request #5168 from kennyj/fix_5152
[PostgreSQL] Remove NULLS FIRST/LAST. Closes #5152
Backport #5168 to 3-2-stable. Fix a problem that NULLS is ignored by …
…postgresql_adapter.rb while creating distincts.
Merge pull request #7232 from kennyj/fix_7200
Fix #7200. Backport #5168 to 3-2-stable