Merge pull request #58223 from nextcloud/fix/oracle-truncate-table

fix: quote tablenames for truncating in oracle
This commit is contained in:
Anna 2026-02-10 23:29:34 +01:00 committed by GitHub
commit feaebeb97e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}
*/