[Dive4elements-commits] [PATCH 1 of 3] AFT/DIPS: Fixed wrond SQL statement

Wald Commits scm-commit at wald.intevation.org
Wed Mar 27 20:19:52 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1364406508 -3600
# Node ID 11fba4dabe055d3028f0c5dd2c15fbcf67ca0a58
# Parent  f9eee1909e6e6ec5bbed3dad7b8ffbefc9777e70
AFT/DIPS: Fixed wrond SQL statement.

diff -r f9eee1909e6e -r 11fba4dabe05 flys-aft/src/main/resources/sql/flys-common.properties
--- a/flys-aft/src/main/resources/sql/flys-common.properties	Wed Mar 27 17:49:46 2013 +0100
+++ b/flys-aft/src/main/resources/sql/flys-common.properties	Wed Mar 27 18:48:28 2013 +0100
@@ -52,6 +52,6 @@
         dt.id AS id, \
         dt.bfg_id AS bfg_id \
     FROM discharge_tables dt JOIN gauges g ON dt.gauge_id = g.id \
-    WHERE g.id = :gauge_id AND g.kind = 0
+    WHERE g.id = :gauge_id AND dt.kind = 0
 update.bfg.id.discharge.table = \
     UPDATE discharge_tables SET bfg_id = :bfg_id WHERE id = :id


More information about the Dive4elements-commits mailing list