diff flys-aft/src/main/resources/sql/flys-common.properties @ 4096:82f5266f881b

Add code to build the difference of the W/Q values of two discharge tables. flys-aft/trunk@3617 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 06 Jan 2012 17:16:46 +0000
parents b3fc044f75ba
children 83c72bc07591
line wrap: on
line diff
--- a/flys-aft/src/main/resources/sql/flys-common.properties	Fri Jan 06 12:10:40 2012 +0000
+++ b/flys-aft/src/main/resources/sql/flys-common.properties	Fri Jan 06 17:16:46 2012 +0000
@@ -11,4 +11,5 @@
                         VALUES (:id, :gauge_id, :description, 0, :time_interval_id)
 select.discharge.table.values = SELECT id, w, q FROM discharge_table_values WHERE table_id = :table_id
 next.discharge.table.values.id = SELECT NEXTVAL('DISCHARGE_TABLE_VALUES_ID_SEQ') AS discharge_table_values_id
-insert.discharge.table.value = INSERT INTO discharge_tables (id, table_id, w, q) VALUES (:id, :table_id, :w, :q)
+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

http://dive4elements.wald.intevation.org