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

Mysql 5.7 requires order by clause in select DISTINCT statement #427

Open
lionelbzv opened this issue Jun 17, 2016 · 0 comments
Open

Mysql 5.7 requires order by clause in select DISTINCT statement #427

lionelbzv opened this issue Jun 17, 2016 · 0 comments
Labels

Comments

@lionelbzv
Copy link

lionelbzv commented Jun 17, 2016

I'm (always) using Propel1 and got some errors w. MySQL 5.7

seems Doctrine2 had the same problem > doctrine/orm#5622

The problem seems raised when I tried to make an "order by" with a column being in a "join" clause.

        FooQuery::create()
           ->distinct()
            ->joinAnotherTable()
            ->orderBy('AnotherTable.CreatedAt', 'desc')
            ->find($con);

Has anybody experiencing the same issue?
I've fixed it by unset the ONLY_FULL_GROUP_BY mode in MySQL, don't know if it could be the job of Propel instead.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants