diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-03-18 18:59:46 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-03-18 18:59:46 +0300 |
commit | 4656753df025b9633c46aac666b18c23e31209dc (patch) | |
tree | 3890328f5143b349a033a49d55728ed06d9a9852 /apps/user_ldap | |
parent | 39b5c2cd8324655c88507993fcbc08f2f331ff68 (diff) |
do not forget DB table prefix with truncate queryfix/noid/truncate-oracle
- 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>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php index 3f590df7fa5..024c5801582 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); } } |