# HG changeset patch # User Felix Wolfsteller # Date 1366108752 -7200 # Node ID 26dcd924befc06f264d473832c226202a2d5fe02 # Parent 17eba7d251b22498784ec282d7d8a447da87f5c2 WQKmsFactory: Fix name sql. diff -r 17eba7d251b2 -r 26dcd924befc flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKmsFactory.java --- 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");