From 28fadf953a37ae4b3e138d1b9141b0c7b78999fc Mon Sep 17 00:00:00 2001 From: Ole Morten Halvorsen Date: Fri, 29 Jun 2018 10:29:36 +0200 Subject: [PATCH] Make query compatible with strict MySQL (#1368) MySQL 5.7 is strict by default and will error out on the incorrect GROUP BY. --- update/common/scripts/5.4/cleanuntranslatablerelations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/common/scripts/5.4/cleanuntranslatablerelations.php b/update/common/scripts/5.4/cleanuntranslatablerelations.php index a5e8fed711b..7a4cde2b323 100644 --- a/update/common/scripts/5.4/cleanuntranslatablerelations.php +++ b/update/common/scripts/5.4/cleanuntranslatablerelations.php @@ -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);