From d2d679dde78c7de130b638a796da3340108b5235 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 10 Jul 2015 22:44:03 +0200 Subject: [PATCH] Pass function name in Database::selectRowCount This allow to see the correct function name in the debug logs Change-Id: I84c94edce60efb8f15a7eb178065ee03e85fc282 --- includes/db/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1