Index: trunk/core/kernel/utility/debugger.php =================================================================== diff -u -N -r8436 -r8438 --- trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 8436) +++ trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 8438) @@ -803,6 +803,9 @@ Array ('name' => 'Affected Rows', 'value' => $rows_affected), ); + if (isset($func_arguments[4])) { + $additional[] = Array ('name' => 'Result', 'value' => $func_arguments[4]); + } $this->ProfilerData[$key]['additional'] =& $additional; } } Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r8436 -r8438 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8436) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8438) @@ -402,7 +402,8 @@ } // set 2nd checkpoint: begin if(!$isSkipTable) { - $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows()); + $first_cell = count($ret) == 1 && count($ret[0]) == 1 ? current($ret[0]) : null; + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell); $debugger->profilerAddTotal('sql', 'sql_'.$queryID); } $this->Destroy();