Details
Description
The countDeleteChunks, the statement used to cleanup the DATA table will not affect any rows if there are any rows never than maxLastModified. This is because the alias m matches the wrong table name.
Will add test case.
The fix likely is to use fully qualified table names, like:
dataStatement.append(" and not exists(select * from " + this.tnMeta + " where " + this.tnMeta + ".ID = " + this.tnData + ".ID and LASTMOD > ?)");