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
MySQL will accept it but PostgreSQL will throw this error :
Error: SQLSTATE[42803]: Grouping error: 7 ERROR: column "Zone.reference" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ...RE 1 = 1 AND "Zone"."id" <> 126 ORDER BY "reference... ^
The only way I found to run my application was to completely remove the property Zone::$order
The text was updated successfully, but these errors were encountered:
Models can define default order conditions that will cause issues with
postgres. By setting order=>false on all the queries emitted by
TreeBehavior, we can avoid this issue and not have issues with models
that define a default ordering.
Refs #5155
Consider a model as following:
create a new "Zone" element from POST form like :
will cause a SQL query as the following :
MySQL will accept it but PostgreSQL will throw this error :
The only way I found to run my application was to completely remove the property Zone::$order
The text was updated successfully, but these errors were encountered: