You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just updated my rather large project to Grails 4.0.11 from 3.3. One problem which I couldn't fix seems to be a regression with GORM 7.0.5 on Postgres:
There is a similar problem with MySQL when using sql_mode with ONLY_FULL_GROUP_BY.
It results in the following error: ERROR 1140 (42000): Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause.
I've just updated my rather large project to Grails 4.0.11 from 3.3. One problem which I couldn't fix seems to be a regression with GORM 7.0.5 on Postgres:
This simple code:
is translated by GORM into
select distinct count(activity0_.id) as col_0_0_ from grails_activity activity0_ order by activity0_.created desc
which, on postgresql causes the following exception
ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
For "totalCount" there seems to be no necessity to even include the order clause to the SQL statement.
The text was updated successfully, but these errors were encountered: