Project

General

Profile

Bug #18064 » 7295.diff

Administrator Admin, 2008-01-28 16:24

View differences:

/home/klee/eclipse/typo3/typo3/sysext/dbal/class.ux_t3lib_db.php (working copy)
/**
* SQL parser
*
*
* @var t3lib_sqlengine
*/
var $SQLparser;
......
// 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!');
}
$outputHandlerKey = $handlerKey;
// Find handler key, select "_DEFAULT" if none is specifically configured:
$outputHandlerKey = $this->table2handlerKeys[$vArray['table']] ? $this->table2handlerKeys[$vArray['table']] : '_DEFAULT';
}
// Check initialized state; if handler is NOT initialized (connected) then we will connect it!
......
if(count($fieldArray)==1 && isset($this->mapping[$t]['mapFieldNames'][$fieldArray[0]])) {
$sqlPartArray[$k]['value'][0] = $this->mapping[$t]['mapFieldNames'][$fieldArray[0]];
} elseif(count($fieldArray)==2 && isset($this->mapping[$t]['mapFieldNames'][$fieldArray[1]])) {
$sqlPartArray[$k]['value'][0] = $fieldArray[0].'.'.$this->mapping[$t]['mapFieldNames'][$fieldArray[1]];
$sqlPartArray[$k]['value'][0] = $fieldArray[0].'.'.$this->mapping[$t]['mapFieldNames'][$fieldArray[1]];
}
}
......
$query = implode(' ',$inData['args']);
else
$query = $this->lastQuery;
if($this->conf['debugOptions']['backtrace']) {
$backtrace = debug_backtrace();
unset($backtrace[0]); // skip this very method :)
......
unset($backtrace[0]); // skip this very method :)
$data['backtrace'] = array_slice($backtrace, 0, $this->conf['debugOptions']['backtrace']);
}
switch($function) {
case 'exec_INSERTquery':
case 'exec_UPDATEquery':
(1-1/2)