diff artifacts/doc/conf/meta-data.xml @ 8214:ceeeaf228fe4

Allow fractions without SQ-time interval (suspended sediment) to be loaded.
author Tom Gottfried <tom@intevation.de>
date Mon, 08 Sep 2014 10:03:00 +0200
parents 4b2b7593815c
children 1cd7225df846
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Fri Sep 05 20:57:31 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Mon Sep 08 10:03:00 2014 +0200
@@ -1491,7 +1491,7 @@
                       ON ms.id = syv.measurement_station_id
                   JOIN rivers r ON ms.river_id = r.id
                   JOIN time_intervals ti ON sy.time_interval_id = ti.id
-                  JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id
+                  LEFT JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id
                   JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id
               WHERE   r.id = ${river_id}
                   AND ms.station BETWEEN ${fromkm} AND ${tokm}
@@ -1523,7 +1523,7 @@
                   JOIN sediment_load_ls_values syv
                       ON sy.id = syv.sediment_load_ls_id
                   JOIN time_intervals ti ON sy.time_interval_id = ti.id
-                  JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id
+                  LEFT JOIN time_intervals sq ON sy.sq_time_interval_id = sq.id
                   JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id
                   JOIN units u ON sy.unit_id = u.id
               WHERE   r.id = ${river_id}

http://dive4elements.wald.intevation.org