Skip to content

Commit 148f786

Browse files
authored
Merge pull request #261 from WikibaseSolutions/bugfix-give-method-to-estimate-row-count
Give __METHOD__ to estimateRowCount to prevent warning 'SQL query did not specify the caller'
2 parents 946038f + 6e010af commit 148f786

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/PropertyAnnotators/PageNumRevisionPropertyAnnotator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private function getPageRevisions( $pageId ) {
7575
return $this->appFactory->getConnection()->estimateRowCount(
7676
"revision",
7777
"*",
78-
[ "rev_page" => $pageId ]
78+
[ "rev_page" => $pageId ],
79+
__METHOD__
7980
);
8081
}
8182

src/PropertyAnnotators/TalkPageNumRevisionPropertyAnnotator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private function getPageRevisions( $pageId ) {
7575
return $this->appFactory->getConnection()->estimateRowCount(
7676
"revision",
7777
"*",
78-
[ "rev_page" => $pageId ]
78+
[ "rev_page" => $pageId ],
79+
__METHOD__
7980
);
8081
}
8182

0 commit comments

Comments
 (0)