Skip to content

Commit 33ac5fc

Browse files
committed
do not forget DB table prefix with truncate query
- as used in LDAP's AbstractMapping::clear() method - and in Comment's ManagerTest::setUp() - fixes a DB Exception with Oracle Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
1 parent 4ccacc7 commit 33ac5fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/user_ldap/lib/Migration/Version1130Date20211102154716.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array
6969
// ldap_group_mapping_backup table. No need to recreate, but it
7070
// should be empty.
7171
// TRUNCATE is not available from Query Builder, but faster than DELETE FROM.
72-
$sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('ldap_group_mapping_backup', false);
72+
$sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*ldap_group_mapping_backup`', false);
7373
$this->dbc->executeUpdate($sql);
7474
}
7575
}

0 commit comments

Comments
 (0)