[BUGFIX] Make quoting of SQL fragments in TCA possible 60/53360/17
authorStephan Großberndt <stephan@grossberndt.de>
Fri, 30 Jun 2017 06:35:50 +0000 (08:35 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Thu, 30 Nov 2017 14:38:26 +0000 (15:38 +0100)
commit91aa14884b6526dc664b6472baa27e9d802b09fc
treeefb015401790d2f048041d0f502e6bf518984ef1
parent3d1fbfd430fd696dd21ff13ffb80ba9c03b29ab7
[BUGFIX] Make quoting of SQL fragments in TCA possible

The table and column name quoting method {#tableName}.{#columnName}
introduced for TypoScript in issue #80506 is now used to quote
identifiers in TCA column definitions known to possibly contain SQL
fragments. Missing quotes for identifiers containing e.g. uppercase
letters lead to exceptions when performing a query in PostgreSQL.

In order to achieve this a new Class TcaPreparation is added as this is
not a typical TcaMigration.

Releases: master, 8.7
Resolves: #81751
Related: #80506
Change-Id: I230be317c7088e5de5343634fac507b4ab994b28
Reviewed-on: https://review.typo3.org/53360
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php
typo3/sysext/core/Classes/Preparations/TcaPreparation.php [new file with mode: 0644]
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Documentation/Changelog/master/Important-81751-DbalCompatibleQuotingInTca.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php [new file with mode: 0644]
typo3/sysext/frontend/Configuration/TCA/tt_content.php