[PATCH] issue1435: Remove hardcoded river for dc sediment yield sql query
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 27 21:58:20 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380312552 -7200
# Node ID c0349b54c604128ff836bbbe2b3bac09a14ac865
# Parent 5be5bf32bead5e947c5f5262ddb5f66c8ded1008
issue1435: Remove hardcoded river for dc sediment yield sql query.
diff -r 5be5bf32bead -r c0349b54c604 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml Fri Sep 27 16:17:03 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml Fri Sep 27 22:09:12 2013 +0200
@@ -1242,7 +1242,7 @@
JOIN rivers r ON sy.river_id = r.id
JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id
JOIN time_intervals ti ON sy.time_interval_id = ti.id
- WHERE r.name = 'Elbe'
+ WHERE r.id = ${river_id}
AND ti.stop_time IS NULL
AND syv.station BETWEEN ${fromkm} AND ${tokm}
</dc:statement>
@@ -1268,7 +1268,7 @@
JOIN rivers r ON sy.river_id = r.id
JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id
JOIN time_intervals ti ON sy.time_interval_id = ti.id
- WHERE r.name = 'Elbe'
+ WHERE r.id = ${river_id}
AND ti.stop_time IS NOT NULL
AND syv.station BETWEEN ${fromkm} AND ${tokm}
</dc:statement>
More information about the Dive4elements-commits
mailing list