From 1c13269fc8ea3849b80b15124471f408dea20e8f Mon Sep 17 00:00:00 2001 From: sinthuja Date: Fri, 16 Jun 2017 11:50:54 +0530 Subject: [PATCH] Fixing https://github.com/wso2/product-iots/issues/495. --- .../mgt/dao/impl/operation/SQLServerOperationDAOImpl.java | 3 ++- 1 file changed, 2 insertions(+), 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/operation/SQLServerOperationDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/operation/SQLServerOperationDAOImpl.java index 60015a9095..cbc5817381 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/operation/SQLServerOperationDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/operation/SQLServerOperationDAOImpl.java @@ -284,7 +284,8 @@ public class SQLServerOperationDAOImpl extends GenericOperationDAOImpl { stmt = conn.prepareStatement(sql); stmt.setString(1, opStatus.toString()); stmt.setString(2, pushNotificationStatus.toString()); - stmt.setInt(3, limit); + stmt.setInt(3, 0); + stmt.setInt(4, limit); rs = stmt.executeQuery(); while (rs.next()) { int tenantID = rs.getInt("TENANT_ID");