HHH-18156 Fix operation is not allowed from within a pluggable database

This commit is contained in:
Yanming Zhou 2024-05-23 15:28:52 +08:00 committed by Christian Beikov
parent d02d8d7af6
commit 0e0ad7b6ed
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class OracleDatabaseCleaner implements DatabaseCleaner {
// Exclude the tables with names starting like 'DEF$_'
" AND table_name NOT LIKE 'DEF$\\_%' ESCAPE '\\'" +
" UNION ALL " +
"SELECT 'DROP SEQUENCE ' || sequence_owner || '.' || sequence_name FROM all_sequences WHERE sequence_owner = sys_context('USERENV', 'SESSION_USER') and sequence_name not like 'ISEQ$$%'"
"SELECT 'DROP SEQUENCE ' || sequence_owner || '.' || sequence_name FROM all_sequences WHERE sequence_owner = sys_context('USERENV', 'SESSION_USER') and sequence_name not like 'ISEQ$$%' and sequence_name not like 'MVIEW$%'"
);
}
catch (SQLException sqlException) {