Skip to content

Commit

Permalink
[BUGFIX] Fix translated file relation with sql_mode=ONLY_FULL_GROUP_BY
Browse files Browse the repository at this point in the history
The SQL mode ONLY_FULL_GROUP_BY enforces all fields used in "GROUP BY"
to be present in "SELECT".

See https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_only_full_group_by

Resolves: #85159
Releases: master, 8.7
Change-Id: Iff7895dd9703557ca0b91613516bdb3391b4d4f6
Reviewed-on: https://review.typo3.org/58826
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
  • Loading branch information
mbrodala authored and NeoBlack committed Nov 2, 2018
1 parent d16606b commit 6132716
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -243,7 +243,7 @@ protected function getPossibleUidsByCurrentSysLanguage(array $possibleUids, $for
$queryBuilder->createNamedParameter([$currentLanguage, 0], Connection::PARAM_INT_ARRAY)
)
)
->groupBy($languageField)
->groupBy($languageField, 'uid')
->execute()
->fetchAll();

Expand Down

0 comments on commit 6132716

Please sign in to comment.