eliminato _ da pattern per cancellazione viste e tabelle temporanee

This commit is contained in:
2024-06-05 12:37:14 +02:00
parent 3e461bc692
commit 02ca6eea4a

View File

@@ -54,9 +54,9 @@ public class EmsSystemContext {
.collect(Collectors.toList());
Pattern pattern1 = Pattern.compile("(t[0-9]_)\\w+", Pattern.CASE_INSENSITIVE);
Pattern pattern2 = Pattern.compile("(m[0-9]_)\\w+", Pattern.CASE_INSENSITIVE);
Pattern pattern3 = Pattern.compile("(v[0-9]_)\\w+", Pattern.CASE_INSENSITIVE);
Pattern pattern1 = Pattern.compile("(t[0-9])\\w+", Pattern.CASE_INSENSITIVE);
Pattern pattern2 = Pattern.compile("(m[0-9])\\w+", Pattern.CASE_INSENSITIVE);
Pattern pattern3 = Pattern.compile("(v[0-9])\\w+", Pattern.CASE_INSENSITIVE);
Predicate<DatabaseTableView> deletionPredicate = x -> pattern1.matcher(x.getTableName()).matches() ||
pattern2.matcher(x.getTableName()).matches() ||