Index: trunk/kernel/include/adodb/adodb.inc.php =================================================================== diff -u -r842 -r854 --- trunk/kernel/include/adodb/adodb.inc.php (.../adodb.inc.php) (revision 842) +++ trunk/kernel/include/adodb/adodb.inc.php (.../adodb.inc.php) (revision 854) @@ -723,8 +723,15 @@ ADOConnection::outp( "=----\n($this->databaseType): ".($sqlTxt)." \n-----\n",false); flush(); + $profileSQLs = defined('SQL_PROFILE')&&(SQL_PROFILE==1); + if($profileSQLs) + { + $isSkipTable = isSkipTable($sql); + $queryID = $debugger->generateID(); + if(!$isSkipTable) $debugger->profileStart('sql_'.$queryID,$sql); + } $this->_queryID = $this->_query($sql,$inputarr,$arg3); - + if($profileSQLs && !$isSkipTable) $debugger->profileFinish('sql_'.$queryID); /* Alexios Fakios notes that ErrorMsg() must be called before ErrorNo() for mssql because ErrorNo() calls Execute('SELECT @ERROR'), causing recure