[TASK] Allow proper quoting of database identifiers in TypoScript 04/52204/5
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 28 Mar 2017 03:40:12 +0000 (20:40 -0700)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 30 Mar 2017 19:56:30 +0000 (21:56 +0200)
commitd12cb4ec1a014d1e2e22be18686af0ae23ffbb42
treeda3df293cce89d91fcf80eea815af174c9739d64
parentcb6a2fcbd71501673a8900bd14089f864bf6776d
[TASK] Allow proper quoting of database identifiers in TypoScript

Add markup to TypoScript CONTENT object options dealing with database
fields so that SQL fragments can be created in a DBMS agnostic way
using the proper quoting for the active database.

Parsing in `sortBy` and `groupBy` is disabled as these parameters
already follow a stricter syntax that allow automatic parsing and
quoting.

Usage Example: `select.where = {#colPos}=0`

Change-Id: I95592b82de08e6cb6f9e952e6c456417878c23a8
Resolves: #80506
Releases: master
Reviewed-on: https://review.typo3.org/52204
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
13 files changed:
typo3/sysext/core/Classes/Database/Query/QueryHelper.php
typo3/sysext/core/Documentation/Changelog/master/Important-80506-DbalCompatibleFieldQuotingInTypoScript.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts
typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php
typo3/sysext/css_styled_content/Configuration/TypoScript/Helper/StylesContent.txt
typo3/sysext/css_styled_content/Documentation/Configuration/Setup/Index.rst
typo3/sysext/css_styled_content/Documentation/Installation/Index.rst
typo3/sysext/fluid_styled_content/Documentation/Installation/InsertingContentPageTemplate/Index.rst
typo3/sysext/fluid_styled_content/Documentation/Installation/Upgrading/Index.rst
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php
typo3/sysext/frontend/ext_localconf.php