Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make query compatible with strict MySQL (ezsystems#1368)
MySQL 5.7 is strict by default and will error out on the incorrect GROUP BY.

(cherry picked from commit 28fadf9)
  • Loading branch information
omh authored and andrerom committed Jun 29, 2018
1 parent 5e55dd9 commit 2cce17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update/common/scripts/5.4/cleanuntranslatablerelations.php
Expand Up @@ -82,7 +82,7 @@ function parseRelationListIds( $relationListXml )
"FROM ezcontentobject_attribute attr ".
"INNER JOIN ezcontentclass_attribute classattr ON attr.contentclassattribute_id=classattr.id " .
"WHERE classattr.data_type_string IN ( 'ezobjectrelation', 'ezobjectrelationlist' ) AND can_translate=0 " .
"GROUP BY contentobject_id, version, data_int"
"GROUP BY contentobject_id, version, data_int, attr_id, classattr.data_type_string, attr.data_text"
);

$count = count($rows);
Expand Down

0 comments on commit 2cce17c

Please sign in to comment.