Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r8598 -r8815 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8598) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8815) @@ -374,14 +374,10 @@ $query_func = $this->getMetaFunction('query'); // set 1st checkpoint: begin - $isSkipTable = true; $profileSQLs = defined('DBG_SQL_PROFILE') && DBG_SQL_PROFILE; if ($profileSQLs) { - $isSkipTable = isSkipTable($sql); - if (!$isSkipTable) { - $queryID = $debugger->generateID(); - $debugger->profileStart('sql_'.$queryID, $debugger->formatSQL($sql)); - } + $queryID = $debugger->generateID(); + $debugger->profileStart('sql_'.$queryID, $debugger->formatSQL($sql)); } // set 1st checkpoint: end @@ -406,22 +402,18 @@ } } // set 2nd checkpoint: begin - if(!$isSkipTable) { - $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; + $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; - $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell); - $debugger->profilerAddTotal('sql', 'sql_'.$queryID); - } + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell); + $debugger->profilerAddTotal('sql', 'sql_'.$queryID); $this->Destroy(); // set 2nd checkpoint: end return $ret; } else { // set 2nd checkpoint: begin - if(!$isSkipTable) { - $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows()); - $debugger->profilerAddTotal('sql', 'sql_'.$queryID); - } + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows()); + $debugger->profilerAddTotal('sql', 'sql_'.$queryID); // set 2nd checkpoint: end } $this->showError($sql);