Pass function name in Database::selectRowCount
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 10 Jul 2015 20:44:03 +0000 (22:44 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 10 Jul 2015 20:44:03 +0000 (22:44 +0200)
This allow to see the correct function name in the debug logs

Change-Id: I84c94edce60efb8f15a7eb178065ee03e85fc282

includes/db/Database.php

index 84c4a66..2f1155d 100644 (file)
@@ -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 );