Skip to content

Commit

Permalink
[DURACOM-200] improvement of checker script
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed eskander committed Nov 8, 2023
1 parent 7eedb12 commit 5a7c795
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 5a7c795

Please sign in to comment.