|
@@ 114-118 (lines=5) @@
|
| 111 |
|
$qb->delete('filecache') |
| 112 |
|
->where($qb->expr()->eq('storage', $qb->createNamedParameter($correctStorageNumericId))); |
| 113 |
|
|
| 114 |
|
if ($correctPath === '' && $this->connection->getDatabasePlatform() instanceof OraclePlatform) { |
| 115 |
|
$qb->andWhere($qb->expr()->isNull('path')); |
| 116 |
|
} else { |
| 117 |
|
$qb->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter(md5($correctPath)))); |
| 118 |
|
} |
| 119 |
|
$entryExisted = $qb->execute() > 0; |
| 120 |
|
|
| 121 |
|
$qb = $this->connection->getQueryBuilder(); |
|
@@ 379-383 (lines=5) @@
|
| 376 |
|
// where storage=$storage and path='$parentPath' |
| 377 |
|
->where($qb->expr()->eq('storage', $qb->createNamedParameter($storageId))); |
| 378 |
|
|
| 379 |
|
if ($path === '' && $this->connection->getDatabasePlatform() instanceof OraclePlatform) { |
| 380 |
|
$qb->andWhere($qb->expr()->isNull('path')); |
| 381 |
|
} else { |
| 382 |
|
$qb->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter(md5($path)))); |
| 383 |
|
} |
| 384 |
|
$results = $qb->execute(); |
| 385 |
|
$rows = $results->fetchAll(); |
| 386 |
|
$results->closeCursor(); |