[BUGFIX] "Illegal mix of collations" in Upgrade Wizard 17/32117/6
authorLars Trebing <lars@trebing.name>
Tue, 12 Aug 2014 15:20:58 +0000 (17:20 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Fri, 15 Aug 2014 18:49:06 +0000 (20:49 +0200)
commit587f8763f34ca6abfd4db0d994018a91e31533b1
tree66e4ae90c6e2a58528d70020db98fba38bf11d54
parentafa3e7f8285f4e30a8a4fbc163fdf616b4e43b80
[BUGFIX] "Illegal mix of collations" in Upgrade Wizard

When directly comparing CAST(... AS CHAR) with a CHAR field (including
VARCHAR and TEXT) whose collation isn't the same as that of the database
connection, MySQL gives an error like this:

> Illegal mix of collations (utf8_general_ci,IMPLICIT) and
> (utf8_unicode_ci,IMPLICIT) for operation '<>'

Wrapping the right side of the comparison in CAST(... AS CHAR) as well
keeps the data unchanged while ensuring that both sides have the same
collation.

Change-Id: Icaec66412d6b6441ae30065ffb92565991e9a1e4
Resolves: #36754
Releases: 6.3, 6.2
Reviewed-on: http://review.typo3.org/32117
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/install/Classes/Updates/TceformsUpdateWizard.php
typo3/sysext/install/Classes/Updates/TtContentUploadsUpdateWizard.php