Skip to content

Commit

Permalink
[BUGFIX] Quote identifier colPos in documentation example
Browse files Browse the repository at this point in the history
The `colPos` identifier must be quoted - triggered by `{#colPos}`
in TypoScript - to make the database query work on database systems
that support case-sensitive identifiers (e.g. like PostgreSQL).

See
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.7/Importa
nt-80506-DbalCompatibleFieldQuotingInTypoScript.html and
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions
/Select.html#quoting-of-fields

Releases: master, 10.4
Resolves: #93517
Change-Id: I3ae9b9d269371920570472890a92ba925a3e9822
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67925
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
Stephan Großberndt authored and maddy2101 committed Feb 15, 2021
1 parent d478466 commit c1c144a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -33,7 +33,7 @@ Based on the FLUIDTEMPLATE content object (cObj)
table = tt_content
select {
orderBy = sorting
where = colPos={register:colPos}
where = {#colPos}={register:colPos}
where.insertData = 1
}
}
Expand Down

0 comments on commit c1c144a

Please sign in to comment.