From fb647e29b16b79a320d6099c541339f8fd54c86c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 14 Aug 2023 18:01:24 +0200 Subject: [PATCH] use fresh builders when deleting storages Signed-off-by: Robin Appelman --- apps/files_external/lib/Service/DBConfigService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php index bc089d18fbdb4..ca1d3a6696cb5 100644 --- a/apps/files_external/lib/Service/DBConfigService.php +++ b/apps/files_external/lib/Service/DBConfigService.php @@ -277,14 +277,17 @@ public function removeMount($mountId) { ->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT))); $query->execute(); + $builder = $this->connection->getQueryBuilder(); $query = $builder->delete('external_applicable') ->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT))); $query->execute(); + $builder = $this->connection->getQueryBuilder(); $query = $builder->delete('external_config') ->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT))); $query->execute(); + $builder = $this->connection->getQueryBuilder(); $query = $builder->delete('external_options') ->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT))); $query->execute();