Skip to content

Commit

Permalink
Merge pull request DSpace#9179 from 4Science/DURACOM-200
Browse files Browse the repository at this point in the history
[DURACOM-200] improvement of checker script
  • Loading branch information
tdonohue authored Nov 9, 2023
2 parents 2298701 + 5a7c795 commit 83a6ef1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public List<Bitstream> findDuplicateInternalIdentifier(Context context, Bitstrea

@Override
public List<Bitstream> findBitstreamsWithNoRecentChecksum(Context context) throws SQLException {
Query query = createQuery(context,
"select b from Bitstream b where b not in (select c.bitstream from " +
"MostRecentChecksum c)");
Query query = createQuery(context, "SELECT b FROM MostRecentChecksum c RIGHT JOIN Bitstream b " +
"ON c.bitstream = b WHERE c IS NULL" );

return query.getResultList();
}

Expand Down

0 comments on commit 83a6ef1

Please sign in to comment.