mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix device syntax error in device large response delete
This commit is contained in:
parent
9c81470369
commit
0647eee0d8
@ -2417,11 +2417,10 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
||||
|
||||
private void removeDeviceLargeOperationResponse(Connection conn, List<Integer> enrollmentIds)
|
||||
throws DeviceManagementDAOException {
|
||||
String sql = "DELETE DM_DEVICE_OPERATION_RESPONSE_LARGE " +
|
||||
"FROM DM_DEVICE_OPERATION_RESPONSE_LARGE " +
|
||||
"INNER JOIN DM_DEVICE_OPERATION_RESPONSE ON DM_DEVICE_OPERATION_RESPONSE_LARGE.ID = " +
|
||||
"DM_DEVICE_OPERATION_RESPONSE.ID " +
|
||||
"WHERE ENROLMENT_ID = ?";
|
||||
String sql = "DELETE FROM DM_DEVICE_OPERATION_RESPONSE_LARGE " +
|
||||
"WHERE EXISTS (SELECT ID FROM DM_DEVICE_OPERATION_RESPONSE " +
|
||||
"WHERE DM_DEVICE_OPERATION_RESPONSE.ID = DM_DEVICE_OPERATION_RESPONSE_LARGE.ID " +
|
||||
"AND DM_DEVICE_OPERATION_RESPONSE.ENROLMENT_ID = ?)";
|
||||
try {
|
||||
if (!executeBatchOperation(conn, sql, enrollmentIds)) {
|
||||
String msg = "Failed to remove device large operation response of devices with " +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user