From 7dd7d07c404e9f1fcc6333f29742bd13987e0ca8 Mon Sep 17 00:00:00 2001 From: syalioune Date: Sun, 15 Jan 2023 17:57:58 +0100 Subject: [PATCH] Fix: Double quoting table to avoid PG "relation does not exist" https://github.com/DependencyTrack/dependency-track/issues/2374 Signed-off-by: syalioune --- src/main/java/org/dependencytrack/persistence/QueryManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/dependencytrack/persistence/QueryManager.java b/src/main/java/org/dependencytrack/persistence/QueryManager.java index fdf888947e..9e48f2b549 100644 --- a/src/main/java/org/dependencytrack/persistence/QueryManager.java +++ b/src/main/java/org/dependencytrack/persistence/QueryManager.java @@ -1272,7 +1272,7 @@ public void recursivelyDeleteTeam(Team team) { pm.currentTransaction().begin(); pm.deletePersistentAll(team.getApiKeys()); String aclDeleteQuery = """ - DELETE FROM PROJECT_ACCESS_TEAMS WHERE \"PROJECT_ACCESS_TEAMS\".\"TEAM_ID\" = ? + DELETE FROM \"PROJECT_ACCESS_TEAMS\" WHERE \"PROJECT_ACCESS_TEAMS\".\"TEAM_ID\" = ? """; final Query query = pm.newQuery(JDOQuery.SQL_QUERY_LANGUAGE, aclDeleteQuery); query.executeWithArray(team.getId());