mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #58223 from nextcloud/fix/oracle-truncate-table
fix: quote tablenames for truncating in oracle
This commit is contained in:
commit
feaebeb97e
1 changed files with 7 additions and 0 deletions
|
|
@ -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}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue