[PATCH 23 of 45] bed height differences datacage: only supply differences where subtrahend is older than minuend or year is unknown
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 10 17:05:51 CET 2015
# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1424072346 -3600
# Node ID 17c476e90c078abecb2b0cfd553446131369fa87
# Parent fa57a2cb1dfa5e8eebe5525565c245ff60ba326f
bed height differences datacage: only supply differences where subtrahend is older than minuend or year is unknown.
diff -r fa57a2cb1dfa -r 17c476e90c07 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml Mon Feb 16 15:31:17 2015 +0100
+++ b/artifacts/doc/conf/meta-data.xml Mon Feb 16 08:39:06 2015 +0100
@@ -1886,7 +1886,8 @@
FROM sta b1
JOIN sta b2
ON b1.station = b2.station
- AND b1.id <> b2.id)
+ AND b1.id <> b2.id
+ AND (b1.year > b2.year OR b1.year IS NULL))
SELECT DISTINCT b1id, b1desc, b1year,
b2id, b2desc, b2year
FROM csta
More information about the Dive4Elements-commits
mailing list