From 415fae800753664dba5666448b0baa3c92db2086 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Tue, 8 Nov 2016 23:40:28 +0530 Subject: [PATCH] fixed update issue --- .../device/type/deployer/template/dao/DeviceTypePluginDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.device.type.deployer/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/deployer/template/dao/DeviceTypePluginDAO.java b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.device.type.deployer/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/deployer/template/dao/DeviceTypePluginDAO.java index 49d500ee0e..79d60be5da 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.device.type.deployer/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/deployer/template/dao/DeviceTypePluginDAO.java +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.device.type.deployer/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/deployer/template/dao/DeviceTypePluginDAO.java @@ -228,7 +228,7 @@ public class DeviceTypePluginDAO { } private String getDeviceTableColumnNamesForUpdateQuery() { - return StringUtils.join(deviceDAODefinition.getColumnNames(), "= ?,"); + return StringUtils.join(deviceDAODefinition.getColumnNames(), "= ?,") + "= ?"; } private String getPreparedInputString(int length) {