Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r15338 -r15435 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15338) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15435) @@ -1,6 +1,6 @@ serverInfoLine = $this->serverIndex . ' (' . $host . ')'; + } + + return parent::Connect($host, $user, $pass, $db, $force_new, $retry); + } + + /** * Queries db with $sql query supplied * and returns rows selected if any, false * otherwise. Optional parameter $key_field @@ -1100,7 +1131,7 @@ $first_cell = substr($first_cell, 0, 50) . ' ...'; } - $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), $first_cell, $this->_queryCount, $this->nextQueryCachable, $this->serverIndex); + $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), $first_cell, $this->_queryCount, $this->nextQueryCachable, $this->serverInfoLine); $debugger->profilerAddTotal('sql', 'sql_' . $queryID); $this->nextQueryCachable = false; } @@ -1113,7 +1144,7 @@ else { // set 2nd checkpoint: begin if ( $this->_profileSQLs ) { - $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), null, $this->_queryCount, $this->nextQueryCachable, $this->serverIndex); + $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), null, $this->_queryCount, $this->nextQueryCachable, $this->serverInfoLine); $debugger->profilerAddTotal('sql', 'sql_' . $queryID); $this->nextQueryCachable = false; } @@ -1170,7 +1201,7 @@ $first_cell = substr($first_cell, 0, 50) . ' ...'; } - $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), $first_cell, $this->_queryCount, $this->nextQueryCachable, $this->serverIndex); + $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), $first_cell, $this->_queryCount, $this->nextQueryCachable, $this->serverInfoLine); $debugger->profilerAddTotal('sql', 'sql_' . $queryID); $this->nextQueryCachable = false; } @@ -1181,7 +1212,7 @@ else { // set 2nd checkpoint: begin if ( $this->_profileSQLs ) { - $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), null, $this->_queryCount, $this->nextQueryCachable, $this->serverIndex); + $debugger->profileFinish('sql_' . $queryID, null, null, $this->getAffectedRows(), null, $this->_queryCount, $this->nextQueryCachable, $this->serverInfoLine); $debugger->profilerAddTotal('sql', 'sql_' . $queryID); $this->nextQueryCachable = false; }