Use Query builder function
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d111e88d4c
commit
c71cc6824e
|
@ -168,7 +168,7 @@ class Propagator implements IPropagator {
|
||||||
$storageId = (int)$this->storage->getStorageCache()->getNumericId();
|
$storageId = (int)$this->storage->getStorageCache()->getNumericId();
|
||||||
|
|
||||||
$query->update('filecache')
|
$query->update('filecache')
|
||||||
->set('mtime', $query->createFunction('GREATEST(' . $query->getColumnName('mtime') . ', ' . $query->createParameter('time') . ')'))
|
->set('mtime', $query->func()->greatest('mtime', $query->createParameter('time')))
|
||||||
->set('etag', $query->expr()->literal(uniqid()))
|
->set('etag', $query->expr()->literal(uniqid()))
|
||||||
->where($query->expr()->eq('storage', $query->expr()->literal($storageId, IQueryBuilder::PARAM_INT)))
|
->where($query->expr()->eq('storage', $query->expr()->literal($storageId, IQueryBuilder::PARAM_INT)))
|
||||||
->andWhere($query->expr()->eq('path_hash', $query->createParameter('hash')));
|
->andWhere($query->expr()->eq('path_hash', $query->createParameter('hash')));
|
||||||
|
|
Loading…
Reference in New Issue