summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-27 10:43:42 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-27 10:43:42 +0200
commit6b90ab19530a72e88b6facc10078245a2ea2d0d8 (patch)
treea27236e6af3bf7adb58a039c5c5acf3b31591f8b /lib/private
parentf134244c90ab4aff3fa7758f8c548ebd89c6a256 (diff)
downloadnextcloud-server-6b90ab19530a72e88b6facc10078245a2ea2d0d8.tar.gz
nextcloud-server-6b90ab19530a72e88b6facc10078245a2ea2d0d8.zip
refactor: Use DBAL's executeQuery instead of query (deprecated)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/DB/Migrator.php2
-rw-r--r--lib/private/Repair/SqliteAutoincrement.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index 74e5a285351..46be512440a 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -159,7 +159,7 @@ class Migrator {
$step = 0;
foreach ($sqls as $sql) {
$this->emit($sql, $step++, count($sqls));
- $connection->query($sql);
+ $connection->executeQuery($sql);
}
if (!$connection->getDatabasePlatform() instanceof MySQLPlatform) {
$connection->commit();
diff --git a/lib/private/Repair/SqliteAutoincrement.php b/lib/private/Repair/SqliteAutoincrement.php
index 4a8b2a45d3f..1199370f221 100644
--- a/lib/private/Repair/SqliteAutoincrement.php
+++ b/lib/private/Repair/SqliteAutoincrement.php
@@ -93,7 +93,7 @@ class SqliteAutoincrement implements IRepairStep {
$this->connection->beginTransaction();
foreach ($schemaDiff->toSql($this->connection->getDatabasePlatform()) as $sql) {
- $this->connection->query($sql);
+ $this->connection->executeQuery($sql);
}
$this->connection->commit();
}