---
title: "Important: #81751 - DBAL compatible quoting in TCA"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:important-81751"
source: "Changelog/8.7.x/Important-81751-DbalCompatibleQuotingInTca.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Important: #81751 - DBAL compatible quoting in TCA

See [forge#81751](https://forge.typo3.org/issues/81751)

## Description

Names of tables and columns used in SQL fragments of `TCA` definitions need proper quoting to be compatible with different database drivers. The database
framework of the core now applies proper quoting to table and column names if they are wrapped as `{#tableName}.{#columnName}`

It is advised to adapt extensions accordingly to run successfully on databases like PostgreSQL.

Example for a `TCA` definition snippet:

```php
'columns' => [
    'aField' => [
        'config' => [
            'foreign_table' => 'tt_content',
            'foreign_table_where' => 'AND {#tt_content}.{#CType} IN (\'text\',\'textpic\',\'textmedia\') ORDER BY {#tt_content}.{#CType} ASC',
            ...
        ],
    ],
    ...
],

'columns' => [
    'aField' => [
        'config' => [
            'type' => 'text',
            'search' => [
                'andWhere' => '{#CType}=\'text\' OR {#CType}=\'textpic\' OR {#CType}=\'textmedia\''
            ],
            ...
        ],
    ],
    ...
],
```
