Skip to content

Commit feaebeb

Browse files
authored
Merge pull request #58223 from nextcloud/fix/oracle-truncate-table
fix: quote tablenames for truncating in oracle
2 parents 63eb967 + bc5771b commit feaebeb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/private/DB/OracleConnection.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ private function quoteKeys(array $data) {
2626
return $return;
2727
}
2828

29+
public function truncateTable(string $table, bool $cascade) {
30+
if ($table[0] !== $this->getDatabasePlatform()->getIdentifierQuoteCharacter()) {
31+
$table = $this->quoteIdentifier($table);
32+
}
33+
return parent::truncateTable($table, $cascade);
34+
}
35+
2936
/**
3037
* {@inheritDoc}
3138
*/

0 commit comments

Comments
 (0)