Commit e8038beb authored by Daniel Kim's avatar Daniel Kim
Browse files

fix

parent d5a7782f
......@@ -1349,7 +1349,7 @@ public class ClientApplication {
public static void editPerson(String entity) {
try {
PreparedStatement query = c.prepareStatement("select * from People where name like ?");
query.setString(1, entity);
query.setString(1, entity + "%");
ResultSet rs = query.executeQuery();
if (rs.next()) {
......@@ -1491,7 +1491,7 @@ public class ClientApplication {
public static void deletePerson(String q) {
try {
PreparedStatement query = c.prepareStatement("select personID, name from People where name like ? limit 10");
query.setString(1, q);
query.setString(1, q + "%");
ResultSet rs = query.executeQuery();
String people[] = new String[10];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment