aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-09 00:19:09 -0700
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-09 00:19:09 -0700
commit5bb248efd6ad65ca812b5bfc16c42983bafda77c (patch)
treebb83899459612f8b31c40eeaec4ad80912999657 /lib
parent74f90eabe46b1d1b97bcec475060492d4ddfc568 (diff)
parent142b020d382e169b6e030208d70bda5e8aab1772 (diff)
downloadnextcloud-server-5bb248efd6ad65ca812b5bfc16c42983bafda77c.tar.gz
nextcloud-server-5bb248efd6ad65ca812b5bfc16c42983bafda77c.zip
Merge pull request #2764 from owncloud/remove-limit-from-count-query
Remove wrong limit parameter from count query in compatibility function
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index f28ed24df41..8f6f50bda6e 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -1077,7 +1077,7 @@ class PDOStatementWrapper{
public function numRows() {
$regex = '/^SELECT\s+(?:ALL\s+|DISTINCT\s+)?(?:.*?)\s+FROM\s+(.*)$/i';
if (preg_match($regex, $this->statement->queryString, $output) > 0) {
- $query = OC_DB::prepare("SELECT COUNT(*) FROM {$output[1]}", PDO::FETCH_NUM);
+ $query = OC_DB::prepare("SELECT COUNT(*) FROM {$output[1]}");
return $query->execute($this->lastArguments)->fetchColumn();
}else{
return $this->statement->rowCount();