From: umherirrender Date: Fri, 10 Jul 2015 20:44:03 +0000 (+0200) Subject: Pass function name in Database::selectRowCount X-Git-Tag: 1.31.0-rc.0~10814^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=d2d679dde78c7de130b638a796da3340108b5235;p=lhc%2Fweb%2Fwiklou.git Pass function name in Database::selectRowCount This allow to see the correct function name in the debug logs Change-Id: I84c94edce60efb8f15a7eb178065ee03e85fc282 --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 84c4a665ac..2f1155dd78 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1912,7 +1912,7 @@ abstract class DatabaseBase implements IDatabase { ) { $rows = 0; $sql = $this->selectSQLText( $table, '1', $conds, $fname, $options ); - $res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count" ); + $res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname ); if ( $res ) { $row = $this->fetchRow( $res );