From 6a7353a3b65b613b290905adeef4f8724286e296 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 18 Mar 2022 16:59:46 +0100 Subject: [PATCH] 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 --- apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php index 2cca72ac493..9e9554000d8 100644 --- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php +++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php @@ -67,7 +67,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep { // ldap_group_mapping_backup table. No need to recreate, but it // should be empty. // TRUNCATE is not available from Query Builder, but faster than DELETE FROM. - $sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('ldap_group_mapping_backup', false); + $sql = $this->dbc->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*ldap_group_mapping_backup`', false); $this->dbc->executeStatement($sql); } }