diff --git a/typo3/sysext/core/Classes/Database/Connection.php b/typo3/sysext/core/Classes/Database/Connection.php index 27f4af430ca92981d5c5446cd6b6ef51e15f210e..7e70c6b812d833620dea032dbf4da65ed66af7c7 100644 --- a/typo3/sysext/core/Classes/Database/Connection.php +++ b/typo3/sysext/core/Classes/Database/Connection.php @@ -335,7 +335,7 @@ class Connection extends \Doctrine\DBAL\Connection implements LoggerAwareInterfa */ public function truncate(string $tableName, bool $cascade = false): int { - return $this->executeUpdate( + return $this->executeStatement( $this->getDatabasePlatform()->getTruncateTableSQL( $this->quoteIdentifier($tableName), $cascade diff --git a/typo3/sysext/core/Classes/Database/Query/BulkInsertQuery.php b/typo3/sysext/core/Classes/Database/Query/BulkInsertQuery.php index e6a8651a17c18043816989e6ab0fbec08f98e72b..af689e65b9bd013c2f29a188cd88a0c59616f674 100644 --- a/typo3/sysext/core/Classes/Database/Query/BulkInsertQuery.php +++ b/typo3/sysext/core/Classes/Database/Query/BulkInsertQuery.php @@ -200,7 +200,7 @@ class BulkInsertQuery ); } - return $this->connection->executeUpdate($this->getSQL(), $this->parameters, $this->types); + return $this->connection->executeStatement($this->getSQL(), $this->parameters, $this->types); } /** diff --git a/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php b/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php index 20ba6f5b9b2ddb6c9b3c98f96ded4f7bbe5e6daa..15e560e07bcc064d9264402a81a7c9221979c294 100644 --- a/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php +++ b/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php @@ -190,7 +190,7 @@ class ConnectionMigrator foreach ($statements as $statement) { try { - $this->connection->executeUpdate($statement); + $this->connection->executeStatement($statement); $result[$statement] = ''; } catch (DBALException $e) { $result[$statement] = $e->getPrevious()->getMessage(); diff --git a/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php b/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php index 5c404e4a399b0cbfd2555383b97935d6a67035fe..b991842de49dd43c11d88c39ded8f2c6e3ae8572 100644 --- a/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php +++ b/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php @@ -217,7 +217,7 @@ class SchemaMigrator foreach ((array)$perTableStatements as $statement) { try { - $connection->executeUpdate($statement); + $connection->executeStatement($statement); $result[$statement] = ''; } catch (DBALException $e) { $result[$statement] = $e->getPrevious()->getMessage(); diff --git a/typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php b/typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php index 684178d54fcf5ea5d87cfc95c53238aaec950877..e280cff0a97336bedf35cf389a9f44d67b9d8348 100644 --- a/typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php +++ b/typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php @@ -253,7 +253,7 @@ class SchemaMigratorTest extends FunctionalTestCase $toSchema, $connection->getDatabasePlatform() ); - $connection->executeUpdate($statements[0]); + $connection->executeStatement($statements[0]); self::assertTrue($this->getTableDetails()->hasColumn('zzz_deleted_testfield')); $statements = $this->readFixtureFile('newTable'); diff --git a/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php b/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php index 6ce6f495b4b315d39f654277ff55404c0179d7bd..411fd178b05a0c733833857a95e6aadd59ae7ace 100644 --- a/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php @@ -237,7 +237,7 @@ class ConnectionTest extends UnitTestCase public function bulkInsert(): void { $this->connection->expects(self::once()) - ->method('executeUpdate') + ->method('executeStatement') ->with('INSERT INTO "aTestTable" ("aField") VALUES (?), (?)', ['aValue', 'anotherValue']) ->willReturn(2); @@ -504,7 +504,7 @@ class ConnectionTest extends UnitTestCase public function truncateQuery(): void { $this->connection->expects(self::once()) - ->method('executeUpdate') + ->method('executeStatement') ->with('TRUNCATE "aTestTable"') ->willReturn(0);