comparison flys-aft/src/main/resources/sql/flys-common.properties @ 5258:da1e897c7224

Set the BFG_ID for current discharge tables in FLYS.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 12 Mar 2013 19:15:18 +0100
parents 46e984a3d576
children 11fba4dabe05
comparison
equal deleted inserted replaced
5257:46e984a3d576 5258:da1e897c7224
45 ti.stop_time AS stop_time, \ 45 ti.stop_time AS stop_time, \
46 dt.bfg_id AS bfg_id \ 46 dt.bfg_id AS bfg_id \
47 FROM discharge_tables dt \ 47 FROM discharge_tables dt \
48 LEFT OUTER JOIN time_intervals ti ON dt.time_interval_id = ti.id \ 48 LEFT OUTER JOIN time_intervals ti ON dt.time_interval_id = ti.id \
49 WHERE gauge_id = :gauge_id 49 WHERE gauge_id = :gauge_id
50 select.gauge.master.discharge.table = \
51 SELECT \
52 dt.id AS id, \
53 dt.bfg_id AS bfg_id \
54 FROM discharge_tables dt JOIN gauges g ON dt.gauge_id = g.id \
55 WHERE g.id = :gauge_id AND g.kind = 0
56 update.bfg.id.discharge.table = \
57 UPDATE discharge_tables SET bfg_id = :bfg_id WHERE id = :id

http://dive4elements.wald.intevation.org