Merge branch 'fix-app-uninstall' into 'master'

Fix error in unmanaged app uninstall

See merge request entgra/carbon-device-mgt!749
This commit is contained in:
Dharmakeerthi Lasantha 2021-03-26 14:29:41 +00:00
commit d5f3b32fd0

View File

@ -941,7 +941,7 @@ public class GenericSubscriptionDAOImpl extends AbstractDAOImpl implements Subsc
"ON " + "ON " +
"AP_DEVICE_SUBSCRIPTION.AP_APP_RELEASE_ID = AP_APP_RELEASE.AP_APP_ID " + "AP_DEVICE_SUBSCRIPTION.AP_APP_RELEASE_ID = AP_APP_RELEASE.AP_APP_ID " +
"WHERE PACKAGE_NAME = ? " + "WHERE PACKAGE_NAME = ? " +
"AND DM_DEVICE_ID = ?" + "AND DM_DEVICE_ID = ? " +
"AND UNSUBSCRIBED = 'FALSE' " + "AND UNSUBSCRIBED = 'FALSE' " +
"AND STATUS = 'COMPLETED';"; "AND STATUS = 'COMPLETED';";
try (PreparedStatement stmt = conn.prepareStatement(sql)) { try (PreparedStatement stmt = conn.prepareStatement(sql)) {