Actions
Bug #25777
closedCannot use single quote in TS constant part
Status:
Closed
Priority:
Must have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2011-04-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
It is not possible to save a TS template if the constants contain a single quote, when using MSSQL.
After analyzing the problem, I located it in class.ux_t3lib_db.php in methods INSERTquery and UPDATEquery and only for 'XL' fields (clob) not 'B' (blob).
Methods should be updated as this:
before:
} elseif (!$this->runningNative() && $this->sql_field_metatype($table, $k) == 'XL') { // we skip the field in the regular UPDATE statement, it is only in clobfields $clobfields[$this->quoteFieldNames($k)] = $v; } else {
after:
} elseif (!$this->runningNative() && $this->sql_field_metatype($table, $k) == 'XL') { // we skip the field in the regular UPDATE statement, it is only in clobfields $clobfields[$this->quoteFieldNames($k)] = $this->quoteStr($v, $table); } else {
This does not seem to affect Oracle though.
Actions