Mercurial > dive4elements > river
diff flys-aft/src/main/resources/sql/flys-common.properties @ 4087:aad1886ea226
Store new gauges in FLYS db.
flys-aft/trunk@3568 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 02 Jan 2012 17:45:25 +0000 |
parents | 067341e86375 |
children | 859b4781554a |
line wrap: on
line diff
--- a/flys-aft/src/main/resources/sql/flys-common.properties Mon Jan 02 15:13:58 2012 +0000 +++ b/flys-aft/src/main/resources/sql/flys-common.properties Mon Jan 02 17:45:25 2012 +0000 @@ -1,2 +1,5 @@ select.river = SELECT id, name FROM rivers 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)