Project

General

Profile

Bug #22657 ยป 14394.diff

Administrator Admin, 2010-05-16 00:43

View differences:

t3lib/class.t3lib_db.php (working copy)
}
if ($debug) {
if ($explainMode == 1) {
t3lib_div::debug('QUERY: ' . $query);
t3lib_div::debug(array('Debug trail:' => $trail), 'Row count: ' . $row_count);
if ($error) {
t3lib_div::debug($error);
}
if (count($explain_output)) {
t3lib_div::debug($explain_output);
}
if (count($indices_output)) {
t3lib_div::debugRows($indices_output);
}
} elseif ($explainMode == 2) {
if ($explainMode) {
$data = array();
$data['query'] = $query;
$data['trail'] = $trail;
......
if (count($indices_output)) {
$data['indices'] = $indices_output;
}
$GLOBALS['TT']->setTSselectQuery($data);
if ($explainMode == 1) {
t3lib_div::debug($data, 'tables ' . $from_table, 'DB SQL EXPLAIN');
} elseif ($explainMode == 2) {
$GLOBALS['TT']->setTSselectQuery($data);
}
}
return true;
}
    (1-1/1)