Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java @ 8787:5855f919cbd6
Issue1854: Avoid assumptions about limits of SQL datetime.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 08 Dec 2015 20:15:45 +0100 |
parents | d55cbb45c565 |
children | 5e38e2924c07 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java Tue Dec 08 19:16:03 2015 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java Tue Dec 08 20:15:45 2015 +0100 @@ -58,19 +58,13 @@ List<Double> bKms = QualityMeasurementFactory.getBedMeasurements( river, minMax[0], - minMax[1], - new Date(Long.MIN_VALUE/100000), - new Date(Long.MAX_VALUE/1000) - // values expected to fit in SQL Date, though large enough + minMax[1] ).getKms(); List<Double> blKms = QualityMeasurementFactory.getBedloadMeasurements( river, minMax[0], - minMax[1], - new Date(Long.MIN_VALUE/100000), - new Date(Long.MAX_VALUE/1000) - // values expected to fit in SQL Date, though large enough + minMax[1] ).getKms(); if (bKms.isEmpty() || blKms.isEmpty()) {