From 91a5c8f5902e9a80b886e6255a808da0feab4550 Mon Sep 17 00:00:00 2001 From: gopi17701 Date: Sat, 26 Jan 2019 21:30:33 -0500 Subject: [PATCH] Fixed defects. --- AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java index 42103b9..b597f72 100644 --- a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java +++ b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java @@ -292,7 +292,7 @@ public class SqlDAO extends DAO { public void updateServiceType(int serviceTypeId, String desc) throws AstuteException { try { Statement stmt = conn.createStatement(); - String sql = "UPDATE service_type desc = '" + desc + "' WHERE service_type_id = " + serviceTypeId; + String sql = "UPDATE service_type SET `desc` = '" + desc + "' WHERE service_type_id = " + serviceTypeId; stmt.executeUpdate(sql); } catch (SQLException e) { e.printStackTrace();