Skip to content

Commit

Permalink
Modify register() service to use more precise selection of the proper
Browse files Browse the repository at this point in the history
roster entry after one is created using a particular primary key.
  • Loading branch information
mbjones committed Sep 29, 2013
1 parent 3106482 commit 8eb9ff5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/org/jsc/server/SkaterRegistrationServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,7 @@ public RegistrationResults register(LoginSession loginSession,
Statement stmt = con.createStatement();
StringBuffer rsql = new StringBuffer();
rsql.append(ROSTER_QUERY);
rsql.append(" WHERE classid = '").append(entry.getClassid())
.append("'");
rsql.append(" AND ");
rsql.append("pid = '").append(entry.getPid()).append("'");
rsql.append(" WHERE rosterid = '").append(newRosterId).append("'");
System.out.println(rsql.toString());

ResultSet rs = stmt.executeQuery(rsql.toString());
Expand Down

0 comments on commit 8eb9ff5

Please sign in to comment.