From aecc1b816ebdfcc8bcafc7b862a1e8df93f67ddf Mon Sep 17 00:00:00 2001 From: Scott Phillips Date: Fri, 26 May 2006 14:11:31 +0000 Subject: [PATCH] (Scott Phillips) - Seperated data from query text using the new DatabaseManager methods based on Prepared Statements. git-svn-id: http://scm.dspace.org/svn/repo/trunk@1519 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace/src/org/dspace/administer/CommunityFiliator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dspace/src/org/dspace/administer/CommunityFiliator.java b/dspace/src/org/dspace/administer/CommunityFiliator.java index 85e005c0c8..016f28ed89 100644 --- a/dspace/src/org/dspace/administer/CommunityFiliator.java +++ b/dspace/src/org/dspace/administer/CommunityFiliator.java @@ -251,9 +251,8 @@ public class CommunityFiliator // OK remove the mappings - but leave the community, which will become // top-level DatabaseManager.updateQuery(c, - "DELETE FROM community2community WHERE parent_comm_id=" - + parent.getID() + " AND child_comm_id=" - + child.getID()); + "DELETE FROM community2community WHERE parent_comm_id= ? "+ + "AND child_comm_id= ? ", parent.getID(), child.getID()); // complete the pending transaction c.complete();