diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-06 17:58:47 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-04-06 17:58:47 +0200 |
commit | 142b020d382e169b6e030208d70bda5e8aab1772 (patch) | |
tree | f957e15680d35a227609f186fafcdaece81eb234 /lib/db.php | |
parent | e824c6cffa5408a42b218f943a1e017cf598cedb (diff) | |
download | nextcloud-server-142b020d382e169b6e030208d70bda5e8aab1772.tar.gz nextcloud-server-142b020d382e169b6e030208d70bda5e8aab1772.zip |
Remove wrong limit parameter from count query in compatibility function
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 2 |
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(); |