From 80bf3640f66af0905e53b89760af8a12c3a1f6f4 Mon Sep 17 00:00:00 2001 From: manoj Date: Thu, 2 Apr 2015 11:19:03 +0530 Subject: [PATCH] Change operation status to varchar --- .../mgt/core/operation/mgt/dao/impl/OperationDAOImpl.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/operation/mgt/dao/impl/OperationDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/OperationDAOImpl.java index 0db1da2dbf9..7b28b83b71d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/OperationDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/OperationDAOImpl.java @@ -48,7 +48,7 @@ public class OperationDAOImpl implements OperationDAO { stmt.setString(1, operation.getType().toString()); stmt.setTimestamp(2, new Timestamp(new Date().getTime())); stmt.setTimestamp(3, null); - stmt.setBoolean(4, false); + stmt.setString(4, Operation.Status.PENDING.toString()); stmt.executeUpdate(); rs = stmt.getGeneratedKeys();