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

Fixes puppetclasses search with pg database #55

Closed
wants to merge 1 commit into from
Closed

Fixes puppetclasses search with pg database #55

wants to merge 1 commit into from

Conversation

Orphis
Copy link
Contributor

@Orphis Orphis commented May 24, 2012

The request is sorting the results on a field that isn't in the SELECT DISTINCT columns and pg doesn't like it.
Fixes #1607

@ohadlevy
Copy link
Member

yeah, i saw this is actually a rails bug, I guess we should call the uniq method instead?

@Orphis
Copy link
Contributor Author

Orphis commented May 25, 2012

I don't quite get how this can be a rails bug when you specifically add both the DISTINCT yourself and the ORDER BY without any rails magic involved.
You could say it is a postgresql bug but this would lead us nowhere :)

The request is sorting the results on a field that isn't in the DISTINCT
SELECT'ed columns and pg doesn't like it.
Fixes #1607
@ohadlevy
Copy link
Member

merged - thanks!

@ohadlevy ohadlevy closed this Jun 18, 2012
h0jeZvgoxFepBQ2C pushed a commit to h0jeZvgoxFepBQ2C/foreman that referenced this pull request Jul 26, 2018
Fix for "..../lib/foreman/engine.rb:117:in `eof?': Input/output error - /dev/pts/n (Errno::EIO)" errors
cfouant pushed a commit to cfouant/foreman that referenced this pull request Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants