(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
This commit is contained in:
Scott Phillips
2006-05-26 14:11:31 +00:00
parent dab39601ea
commit aecc1b816e

View File

@@ -251,9 +251,8 @@ public class CommunityFiliator
// OK remove the mappings - but leave the community, which will become // OK remove the mappings - but leave the community, which will become
// top-level // top-level
DatabaseManager.updateQuery(c, DatabaseManager.updateQuery(c,
"DELETE FROM community2community WHERE parent_comm_id=" "DELETE FROM community2community WHERE parent_comm_id= ? "+
+ parent.getID() + " AND child_comm_id=" "AND child_comm_id= ? ", parent.getID(), child.getID());
+ child.getID());
// complete the pending transaction // complete the pending transaction
c.complete(); c.complete();