|
@@ 119-123 (lines=5) @@
|
| 116 |
|
$qb->delete('filecache') |
| 117 |
|
->where($qb->expr()->eq('storage', $qb->createNamedParameter($correctStorageNumericId))); |
| 118 |
|
|
| 119 |
|
if ($correctPath === '' && $this->connection->getDatabasePlatform() instanceof OraclePlatform) { |
| 120 |
|
$qb->andWhere($qb->expr()->isNull('path')); |
| 121 |
|
} else { |
| 122 |
|
$qb->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter(\md5($correctPath)))); |
| 123 |
|
} |
| 124 |
|
$entryExisted = $qb->execute() > 0; |
| 125 |
|
|
| 126 |
|
$qb = $this->connection->getQueryBuilder(); |
|
@@ 383-387 (lines=5) @@
|
| 380 |
|
// where storage=$storage and path='$parentPath' |
| 381 |
|
->where($qb->expr()->eq('storage', $qb->createNamedParameter($storageId))); |
| 382 |
|
|
| 383 |
|
if ($path === '' && $this->connection->getDatabasePlatform() instanceof OraclePlatform) { |
| 384 |
|
$qb->andWhere($qb->expr()->isNull('path')); |
| 385 |
|
} else { |
| 386 |
|
$qb->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter(\md5($path)))); |
| 387 |
|
} |
| 388 |
|
$results = $qb->execute(); |
| 389 |
|
$rows = $results->fetchAll(); |
| 390 |
|
$results->closeCursor(); |