[BUGFIX] Doctrine: Use compatible charset name for database connection 10/48310/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 27 May 2016 08:23:35 +0000 (10:23 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 27 May 2016 12:26:27 +0000 (14:26 +0200)
commita3a261e13769f934eeb44dcc311f5091e110c8bf
tree205137b20ed8b490c9e5f21f15456b82e7186417
parent954c8e1010e8bded2a658fffa7410dbc6c7e2615
[BUGFIX] Doctrine: Use compatible charset name for database connection

Use the charset name 'utf8' instead of 'utf-8' for MySQL connections as
some MySQL server versions silently ignore the connection charset name
'utf-8' and work with the global default connection charset instead.
Using 'utf8' as charset name doesn't exhibit this behavior.

Also changes the silent upgrade wizard to only set the default driver
and connection charset if no value has been configured, this avoids
silently changing non-default values for these options.

Change-Id: I94e1e7c557aff890cec357ef9ee069ae9aa052c6
Resolves: #76265
Releases: master
Reviewed-on: https://review.typo3.org/48310
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php