changeset 5727:26dcd924befc

WQKmsFactory: Fix name sql.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 16 Apr 2013 12:39:12 +0200
parents 17eba7d251b2
children c08f691652cf
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKmsFactory.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKmsFactory.java	Tue Apr 16 12:38:50 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKmsFactory.java	Tue Apr 16 12:39:12 2013 +0200
@@ -37,7 +37,7 @@
     public static final String SQL_SELECT_NAME =
         "SELECT name " +
         "FROM wst_columns "+
-        "WHERE wst_id = :wst_id AND position = :column_pos";
+        "WHERE id = :column_id";
 
 
     /** Hidden constructor, use static methods instead. */
@@ -46,7 +46,7 @@
 
 
     /**
-     * Get WKms for given column and wst_id, caring about the cache.
+     * Get WKms for given column (pos) and wst_id, caring about the cache.
      */
     public static WQKms getWQKms(int column, int wst_id) {
         log.debug("WQKmsFactory.getWQKms");

http://dive4elements.wald.intevation.org