[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>
Showing
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php 4 additions, 1 deletion.../backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php
- typo3/sysext/core/Classes/Preparations/TcaPreparation.php 94 additions, 0 deletionstypo3/sysext/core/Classes/Preparations/TcaPreparation.php
- typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 5 additions, 0 deletions...ysext/core/Classes/Utility/ExtensionManagementUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Important-81751-DbalCompatibleQuotingInTca.rst 45 additions, 0 deletions...log/master/Important-81751-DbalCompatibleQuotingInTca.rst
- typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php 86 additions, 0 deletions...ysext/core/Tests/Unit/Preparations/TcaPreparationTest.php
- typo3/sysext/frontend/Configuration/TCA/tt_content.php 2 additions, 2 deletionstypo3/sysext/frontend/Configuration/TCA/tt_content.php
Please register or sign in to comment