Details
Description
The WHERE clauses are currently generated in a generic fashion, thus including constraints on IDs that are known to evaluate to TRUE. This causes confusion when people look at SQL traces. It would help to skip constrains for ID > NodeDocument.MIN_ID_VALUE and ID < NodeDocument.MAX_ID_VALUE.