Skip to content

Commit 8cf59fd

Browse files
committed
fix: correctly quote tablenames for truncating with oracle
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent f5ccd08 commit 8cf59fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)