From 21ea3a4428d999c25be1b6e4e812c35fb651b7b7 Mon Sep 17 00:00:00 2001 From: manoj Date: Tue, 9 Jun 2015 16:33:09 +0530 Subject: [PATCH] change device type query --- .../org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java index bd61aec1858..31857fc330e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java @@ -279,7 +279,7 @@ public class DeviceDAOImpl implements DeviceDAO { while (resultSet.next()) { Device device = new Device(); DeviceType deviceType = new DeviceType(); - int id = resultSet.getInt(resultSet.getInt(1)); + int id = resultSet.getInt(1); deviceType.setId(id); deviceType.setName(resultSet.getString(2)); device.setId(resultSet.getInt(3));