Skip to content

Error on PostgreSQL 8.3 #2

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

Open
chrisbloom7 opened this issue Jun 29, 2011 · 0 comments
Open

Error on PostgreSQL 8.3 #2

chrisbloom7 opened this issue Jun 29, 2011 · 0 comments

Comments

@chrisbloom7
Copy link

When called with NewsArticles.count_by :published_at, :group_by => "month"

ActiveRecord::StatementInvalid (PGError: ERROR: column "news_articles.published_at" must appear in the GROUP BY clause or be used in an aggregate function

It worked fine on my local MySQL 5.1 server

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

No branches or pull requests

1 participant