Skip to content
Snippets Groups Projects
Commit f7a3b5b4 authored by Pierre Jeanjean's avatar Pierre Jeanjean Committed by Thomas Mortagne
Browse files

XWIKI-21922: Introduce methods to fetch a subset of revisions in XWikiVersioningStoreInterface

* Improve comments

(cherry picked from commit 02818d64)
parent 4fe35f3c
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ private void applyCriteria(final long id, RevisionCriteria criteria)
if (minDate.getTime() < 0) {
minDate = new Date(0);
}
// Most databases store timestamps as seconds, using integers.
// Most databases (e.g., MariaDB) store timestamps as seconds, using integers. As such we cannot go
// higher than Integer.MAX_VALUE seconds.
if (maxDate.getTime() > Integer.MAX_VALUE * 1000L) {
maxDate = new Date(Integer.MAX_VALUE * 1000L);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment