[Dive4elements-commits] [PATCH 1 of 3] Break long lines in FLYS statements
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 12 19:16:57 CET 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1363002909 -3600
# Node ID 46e984a3d576c724a05c9fa855ba0b502666ac59
# Parent c8e79cff622a29567839f8418f9399e5db13c445
Break long lines in FLYS statements.
diff -r c8e79cff622a -r 46e984a3d576 flys-aft/src/main/resources/sql/flys-common.properties
--- a/flys-aft/src/main/resources/sql/flys-common.properties Mon Mar 11 11:46:26 2013 +0100
+++ b/flys-aft/src/main/resources/sql/flys-common.properties Mon Mar 11 12:55:09 2013 +0100
@@ -6,29 +6,44 @@
JOIN wst_column_values wcv ON wcv.wst_column_id = wc.id \
WHERE w.kind = 0 \
GROUP BY r.id, r.name
-select.gauges = SELECT id, name, official_number FROM gauges WHERE river_id = :river_id
-next.gauge.id = SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id
-insert.gauge = INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \
- VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum)
-select.timeintervals = SELECT id, start_time, stop_time FROM time_intervals
-next.timeinterval.id = SELECT NEXTVAL('TIME_INTERVALS_ID_SEQ') AS time_interval_id
-insert.timeinterval = INSERT INTO time_intervals (id, start_time, stop_time) VALUES (:id, :start_time, :stop_time)
-next.discharge.id = SELECT NEXTVAL('DISCHARGE_TABLES_ID_SEQ') AS discharge_table_id
+select.gauges = \
+ SELECT id, name, official_number \
+ FROM gauges \
+ WHERE river_id = :river_id
+next.gauge.id = \
+ SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id
+insert.gauge = \
+ INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \
+ VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum)
+select.timeintervals = \
+ SELECT id, start_time, stop_time FROM time_intervals
+next.timeinterval.id = \
+ SELECT NEXTVAL('TIME_INTERVALS_ID_SEQ') AS time_interval_id
+insert.timeinterval = \
+ INSERT INTO time_intervals (id, start_time, stop_time) \
+ VALUES (:id, :start_time, :stop_time)
+next.discharge.id = \
+ SELECT NEXTVAL('DISCHARGE_TABLES_ID_SEQ') AS discharge_table_id
insert.dischargetable = \
INSERT INTO discharge_tables \
(id, gauge_id, description, bfg_id, kind, time_interval_id) \
VALUES (:id, :gauge_id, :description, :bfg_id, 1, :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_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.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_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.id AS id, \
dt.description AS description, \
- ti.start_time AS start_time, \
- ti.stop_time AS stop_time, \
- dt.bfg_id AS bfg_id \
+ ti.start_time AS start_time, \
+ ti.stop_time AS stop_time, \
+ dt.bfg_id AS bfg_id \
FROM discharge_tables dt \
LEFT OUTER JOIN time_intervals ti ON dt.time_interval_id = ti.id \
WHERE gauge_id = :gauge_id
More information about the Dive4elements-commits
mailing list