mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
[DS-2805] Testing revealed an unrelated error: mismatch between query and setParameter.
This commit is contained in:
@@ -45,7 +45,7 @@ public class ChecksumHistoryDAOImpl extends AbstractHibernateDAO<ChecksumHistory
|
|||||||
String hql = "delete from ChecksumHistory where processEndDate < :processEndDate AND checksumResult.resultCode=:resultCode";
|
String hql = "delete from ChecksumHistory where processEndDate < :processEndDate AND checksumResult.resultCode=:resultCode";
|
||||||
Query query = createQuery(context, hql);
|
Query query = createQuery(context, hql);
|
||||||
query.setTimestamp("processEndDate", retentionDate);
|
query.setTimestamp("processEndDate", retentionDate);
|
||||||
query.setParameter("result", resultCode);
|
query.setParameter("resultCode", resultCode);
|
||||||
return query.executeUpdate();
|
return query.executeUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user