Fix SQL issue in app uninstall feature

remotes/1725333865317989910/tmp_refs/heads/master
Lasantha Dharmakeerthi 6 months ago
commit f2ac7aa9c2

@ -1034,11 +1034,12 @@ public class GenericSubscriptionDAOImpl extends AbstractDAOImpl implements Subsc
"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 = ? " +
"AND STATUS = 'COMPLETED';"; "AND STATUS = 'COMPLETED';";
try (PreparedStatement stmt = conn.prepareStatement(sql)) { try (PreparedStatement stmt = conn.prepareStatement(sql)) {
stmt.setString(1, packageName); stmt.setString(1, packageName);
stmt.setInt(2, id); stmt.setInt(2, id);
stmt.setBoolean(3, false);
try (ResultSet rs = stmt.executeQuery()) { try (ResultSet rs = stmt.executeQuery()) {
if (rs.next()) { if (rs.next()) {
return rs.getString("UUID"); return rs.getString("UUID");

Loading…
Cancel
Save