Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/QueryExecutorBase.java @ 133:56655046194f
Fix Bug setting the Filtervalues into the Statement.
Further Testcases implemented.
geo-backend/trunk@14 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 04 Sep 2009 08:49:50 +0000 |
parents | 5a583cff97ea |
children | 8aad9d098b08 |
comparison
equal
deleted
inserted
replaced
132:5a583cff97ea | 133:56655046194f |
---|---|
37 * @return the manipulated Query | 37 * @return the manipulated Query |
38 */ | 38 */ |
39 protected String setFilterValues(String queryString, String[] filter){ | 39 protected String setFilterValues(String queryString, String[] filter){ |
40 String returnValue = queryString; | 40 String returnValue = queryString; |
41 for (int i = 0; i < filter.length; i++){ | 41 for (int i = 0; i < filter.length; i++){ |
42 returnValue = returnValue.replaceFirst("?", filter[i]); | 42 returnValue = returnValue.replaceFirst("[?]", filter[i]); |
43 } | 43 } |
44 return returnValue; | 44 return returnValue; |
45 } | 45 } |
46 | 46 |
47 /** | 47 /** |