explicitly cast mtime to int
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
ae5eb79593
commit
7be62d083e
|
@ -80,7 +80,7 @@ class Propagator implements IPropagator {
|
||||||
}, $parentHashes);
|
}, $parentHashes);
|
||||||
|
|
||||||
$builder->update('filecache')
|
$builder->update('filecache')
|
||||||
->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter($time, IQueryBuilder::PARAM_INT) . ')'))
|
->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT) . ')'))
|
||||||
->set('etag', $builder->createNamedParameter($etag, IQueryBuilder::PARAM_STR))
|
->set('etag', $builder->createNamedParameter($etag, IQueryBuilder::PARAM_STR))
|
||||||
->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
|
->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
|
||||||
->andWhere($builder->expr()->in('path_hash', $hashParams));
|
->andWhere($builder->expr()->in('path_hash', $hashParams));
|
||||||
|
|
Loading…
Reference in New Issue