瀏覽代碼

quick commit before revert

Trinh Tong 6 年之前
父節點
當前提交
79a29bc819
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/main/java/io/zipcoder/persistenceapp/service/PersonService.java

+ 1
- 1
src/main/java/io/zipcoder/persistenceapp/service/PersonService.java 查看文件

@@ -50,7 +50,7 @@ public class PersonService {
50 50
     public void update(Person p) {
51 51
         Object[] info = {p.getFirstName(), p.getLastName(), p.getMobile(), p.getBirthday(), p.getHomeId()};
52 52
         jdbcTemplate.update(
53
-                "UPDATE person set first_name = ?, last_name ?, mobile = ?, birthday = ?, home_ID = ?" +
53
+                "update person set first_name = ?, last_name ?, mobile = ?, birthday = ?, home_ID = ?" +
54 54
                         "VALUES (?, ?, ?, ?, ?)", info, types);
55 55
     }
56 56