Actions
Bug #18064
closedBogus check in handler_getFromTableList
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2008-01-28
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
From class.ux_t3lib_db.php in the current trunk:
function handler_getFromTableList($tableList) {
$key = $tableList;
if (!isset($this->cache_handlerKeyFromTableList[$key])) {
// Get tables separated:
$_tableList = $tableList;
$tableArray = $this->SQLparser->parseFromTables($_tableList);
// If success, traverse the tables:
if (is_array($tableArray) && count($tableArray)) {
foreach($tableArray as $vArray) {
// Find handler key, select "_DEFAULT" if none is specifically configured:
$handlerKey = $this->table2handlerKeys[$vArray['table']] ? $this->table2handlerKeys[$vArray['table']] : '_DEFAULT';
// In case of separate handler keys for joined tables:
if ($outputHandlerKey && $handlerKey != $outputHandlerKey) {
die('DBAL fatal error: Tables in this list "'.$tableList.'" didn\'t use the same DB handler!');
}
$outpuHandlerKey is never intialized. So the if never is triggered.
(issue imported from #M7295)
Files
Actions