From 0de3082ca442765b24c93f61688c7ef9d08bacde Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Sun, 4 Dec 2011 18:29:57 +0000 Subject: Adding new debugging toolbar Needs a UI cleanup still, but for the most part is working. --- includes/db/Database.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/db/Database.php') diff --git a/includes/db/Database.php b/includes/db/Database.php index 6945cebbb2ce..30377699543c 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -840,9 +840,13 @@ abstract class DatabaseBase implements DatabaseType { throw new MWException( 'Tainted query found' ); } + $queryId = MWDebug::query( $sql, $fname, $isMaster ); + # Do the query and handle errors $ret = $this->doQuery( $commentedSql ); + MWDebug::queryTime( $queryId ); + # Try reconnecting if the connection was lost if ( false === $ret && $this->wasErrorReissuable() ) { # Transaction is gone, like it or not -- cgit v1.2.3