fix: correctly quote tablenames for truncating with oracle

Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
grnd-alt 2026-02-10 17:42:50 +01:00 committed by Anna
parent 63eb9679c2
commit bc5771b0ff

View file

@ -26,6 +26,13 @@ class OracleConnection extends Connection {
return $return;
}
public function truncateTable(string $table, bool $cascade) {
if ($table[0] !== $this->getDatabasePlatform()->getIdentifierQuoteCharacter()) {
$table = $this->quoteIdentifier($table);
}
return parent::truncateTable($table, $cascade);
}
/**
* {@inheritDoc}
*/