[BUGFIX] Make quoting of SQL fragments in TCA possible 89/54889/2
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:40:09 +0000 (15:40 +0100)
commit86481c37b0c1de52c1aea19d14e32db5946aea54
tree949b12e929e9e4fc23a60d814390ec21a5a917f5
parent5b4e54a7b26b6b693e89cdf2d3669686a9ffa9ed
[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
(cherry picked from commit 91aa14884b6526dc664b6472baa27e9d802b09fc)
Reviewed-on: https://review.typo3.org/54889
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