Skip to content

Commit

Permalink
Fix: Double quoting table to avoid PG "relation does not exist"
Browse files Browse the repository at this point in the history
DependencyTrack#2374

Signed-off-by: syalioune <[email protected]>
  • Loading branch information
syalioune committed Jan 15, 2023
1 parent 88781d2 commit 7dd7d07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 7dd7d07

Please sign in to comment.