Mercurial > dive4elements > river
diff flys-aft/src/main/resources/sql/flys-common.properties @ 4097:83c72bc07591
Load all discharge tables from AFT and FLYS of a gauge which needs updating.
flys-aft/trunk@3618 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 06 Jan 2012 18:32:08 +0000 |
parents | 82f5266f881b |
children | 8ba11e13ae8a |
line wrap: on
line diff
--- a/flys-aft/src/main/resources/sql/flys-common.properties Fri Jan 06 17:16:46 2012 +0000 +++ b/flys-aft/src/main/resources/sql/flys-common.properties Fri Jan 06 18:32:08 2012 +0000 @@ -13,3 +13,6 @@ next.discharge.table.values.id = SELECT NEXTVAL('DISCHARGE_TABLE_VALUES_ID_SEQ') AS discharge_table_values_id insert.discharge.table.value = INSERT INTO discharge_table_values (id, table_id, w, q) VALUES (:id, :table_id, :w, :q) delete.discharge.table.value = DELETE FROM discharge_table_values WHERE id = :id +select.gauge.discharge.tables = SELECT dt.id AS id, dt.description AS description, ti.start_time AS start_time, ti.stop_time AS stop_time \ + FROM discharge_tables dt LEFT OUTER JOIN time_intervals ti ON dt.time_interval_id = ti.id \ + WHERE gauge_id = :gauge_id