]> source.dussan.org Git - nextcloud-server.git/commitdiff
use fresh builders when deleting storages 39868/head
authorRobin Appelman <robin@icewind.nl>
Mon, 14 Aug 2023 16:01:24 +0000 (18:01 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 14 Aug 2023 16:03:20 +0000 (18:03 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Service/DBConfigService.php

index bc089d18fbdb45d1047e3e652b047bdf56bd0d06..ca1d3a6696cb562b847c3339a5e8e77feea861d4 100644 (file)
@@ -277,14 +277,17 @@ class DBConfigService {
                        ->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();