summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-19 17:05:44 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-19 17:05:44 +0100
commitef8d38ca27d24ff1c2b2b499f74c24dae9d9e906 (patch)
tree05e7e8ee9638ce16c64d69303df005b5b3ba78e6 /lib
parent4894a2c458f49b2c6b49b18cc0055ae087bff1b2 (diff)
downloadnextcloud-server-ef8d38ca27d24ff1c2b2b499f74c24dae9d9e906.tar.gz
nextcloud-server-ef8d38ca27d24ff1c2b2b499f74c24dae9d9e906.zip
Fix chunked query for tags + unit test
Diffstat (limited to 'lib')
-rw-r--r--lib/private/tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php
index 9ff433b6984..4d737e47e07 100644
--- a/lib/private/tags.php
+++ b/lib/private/tags.php
@@ -211,7 +211,7 @@ class Tags implements \OCP\ITags {
try {
$conn = \OC_DB::getConnection();
- $chunks = array_chunk($objIds, 1000, false);
+ $chunks = array_chunk($objIds, 900, false);
foreach ($chunks as $chunk) {
$result = $conn->executeQuery(
'SELECT `category`, `categoryid`, `objid` ' .