Project

General

Profile

Actions

Bug #20400

closed

DBAL does not support CLOB/BLOB when using a mapped table name

Added by Xavier Perseguers over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When dealing with CLOB/BLOB fields, special care should be taken in INSERT and UPDATE statements. However DBAL does not handle it carefully when the query contains a mapped table name, e.g., when using this configuration:

$TYPO3_CONF_VARS['EXTCONF']['dbal']['mapping'] = array(
'tx_templavoila_datastructure' => array(
'mapTableName' => 'tx_templavoila_ds',
),
);

In this case, the query contains table 'tx_templavoila_ds' instead of 'tx_templavoila_datastructure' and DBAL is not able anymore to detect that a column is of type BLOB/CBLOB leading to an invalid query being issued to the database.

(issue imported from #M11047)


Files

11047.diff (669 Bytes) 11047.diff Administrator Admin, 2009-05-07 16:44
11047_v2.diff (976 Bytes) 11047_v2.diff Administrator Admin, 2009-05-07 17:44
11047_v3.diff (1.04 KB) 11047_v3.diff Administrator Admin, 2009-06-14 22:27
Actions #1

Updated by Xavier Perseguers over 15 years ago

Same problem arises when mapping fields actually:

$TYPO3_CONF_VARS['EXTCONF']['dbal']['mapping'] = array(
'tx_templavoila_datastructure' => array(
'mapTableName' => 'tx_templavoila_ds',
'mapFieldNames' => array(
'dataprot' => 'my_dataprot',
),
),
);

v2 fixes this too.

Actions #2

Updated by Steffen Kamper over 15 years ago

committed v3 to trunk, rev 5590

Actions

Also available in: Atom PDF