mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-18156 Fix operation is not allowed from within a pluggable database
This commit is contained in:
parent
d02d8d7af6
commit
0e0ad7b6ed
@ -76,7 +76,7 @@ public void clearAllSchemas(Connection connection) {
|
||||
// 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user