Index: kernel/db/db_connection.php =================================================================== --- kernel/db/db_connection.php (revision 13329) +++ kernel/db/db_connection.php (working copy) @@ -489,8 +489,13 @@ } // set 2nd checkpoint: begin - $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; if ($profileSQLs) { + $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; + + if (strlen($first_cell) > 200) { + $first_cell = substr($first_cell, 0, 50) . ' ...'; + } + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell, $this->_queryCount); $debugger->profilerAddTotal('sql', 'sql_'.$queryID); }