mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix: correctly quote tablenames for truncating with oracle
Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
parent
63eb9679c2
commit
bc5771b0ff
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