summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-06-02 15:43:43 +0200
committerRobin Appelman <icewind@owncloud.com>2016-06-02 15:43:43 +0200
commitfce19d22d93d8c36066f5fe67efb86bf257a37c7 (patch)
tree16f40927306dfa4b82df9d436ff001076009b73f /lib/private/Files
parent11900baaf37e827be95687c392fb5461fe95a3d1 (diff)
downloadnextcloud-server-fce19d22d93d8c36066f5fe67efb86bf257a37c7.tar.gz
nextcloud-server-fce19d22d93d8c36066f5fe67efb86bf257a37c7.zip
fix mtime propagation on sqlite
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Cache/Propagator.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php
index 6be0818f629..52bb4dfdfca 100644
--- a/lib/private/Files/Cache/Propagator.php
+++ b/lib/private/Files/Cache/Propagator.php
@@ -79,7 +79,7 @@ class Propagator implements IPropagator {
}, $parentHashes);
$builder->update('filecache')
- ->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter($time) . ')'))
+ ->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter($time, IQueryBuilder::PARAM_INT) . ')'))
->set('etag', $builder->createNamedParameter($etag, IQueryBuilder::PARAM_STR))
->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
->andWhere($builder->expr()->in('path_hash', $hashParams));
@@ -165,13 +165,13 @@ class Propagator implements IPropagator {
->andWhere($sizeQuery->expr()->gt('size', $sizeQuery->expr()->literal(-1, IQueryBuilder::PARAM_INT)));
foreach ($this->batch as $item) {
- $query->setParameter('time', $item['time']);
+ $query->setParameter('time', $item['time'], IQueryBuilder::PARAM_INT);
$query->setParameter('hash', $item['hash']);
$query->execute();
if ($item['size']) {
- $sizeQuery->setParameter('size', $item['size']);
+ $sizeQuery->setParameter('size', $item['size'], IQueryBuilder::PARAM_INT);
$sizeQuery->setParameter('hash', $item['hash']);
$sizeQuery->execute();