[PATCH 1 of 2] Fixed query semicolon

Wald Commits scm-commit at wald.intevation.org
Thu Jun 14 17:04:43 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1528988315 -7200
# Node ID 8d4e7e08dbc0f8b3b4c87380ac74816188b37ed5
# Parent  5be112fba8324dd6803a8f48b96c36612ef009a1
Fixed query semicolon

diff -r 5be112fba832 -r 8d4e7e08dbc0 backend/src/main/java/org/dive4elements/river/model/sinfo/CollisionAggregateValue.java
--- a/backend/src/main/java/org/dive4elements/river/model/sinfo/CollisionAggregateValue.java	Thu Jun 14 15:12:25 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/sinfo/CollisionAggregateValue.java	Thu Jun 14 16:58:35 2018 +0200
@@ -106,7 +106,7 @@
                 + " FROM collision_values v INNER JOIN collision s ON v.collision_id=s.id"
                 + " WHERE (collision_id=:parent)"
                 + " AND (station BETWEEN (:kmLo - 0.0001) AND (:kmHi + 0.0001))"
-                + " GROUP BY FLOOR(station+0.4999);").addScalar("station", StandardBasicTypes.DOUBLE)
+                + " GROUP BY FLOOR(station+0.4999)").addScalar("station", StandardBasicTypes.DOUBLE)
                 .addScalar("count", StandardBasicTypes.INTEGER).addScalar("date_min", StandardBasicTypes.DATE)
                 .addScalar("date_max", StandardBasicTypes.DATE).addScalar("gauge_w", StandardBasicTypes.DOUBLE);
         query.setInteger("parent", parent.getId());


More information about the Dive4Elements-commits mailing list