Skip to content

Error on PostgreSQL 8.3 #2

@chrisbloom7

Description

@chrisbloom7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions