mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix SQL issue in app uninstall feature
This commit is contained in:
parent
3106b23d31
commit
f4fe3b8d82
@ -1034,11 +1034,12 @@ public class GenericSubscriptionDAOImpl extends AbstractDAOImpl implements Subsc
|
||||
"AP_DEVICE_SUBSCRIPTION.AP_APP_RELEASE_ID = AP_APP_RELEASE.AP_APP_ID " +
|
||||
"WHERE PACKAGE_NAME = ? " +
|
||||
"AND DM_DEVICE_ID = ? " +
|
||||
"AND UNSUBSCRIBED = 'FALSE' " +
|
||||
"AND UNSUBSCRIBED = ? " +
|
||||
"AND STATUS = 'COMPLETED';";
|
||||
try (PreparedStatement stmt = conn.prepareStatement(sql)) {
|
||||
stmt.setString(1, packageName);
|
||||
stmt.setInt(2, id);
|
||||
stmt.setBoolean(3, false);
|
||||
try (ResultSet rs = stmt.executeQuery()) {
|
||||
if (rs.next()) {
|
||||
return rs.getString("UUID");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user