Fixed defects.

This commit is contained in:
gopi17701 2019-01-26 21:30:33 -05:00
parent b497b7bdc3
commit 91a5c8f590

View File

@ -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();