Mercurial > lada > lada-server
changeset 893:9258cce7bcbd
Replaced replaceable character for 'SIMILAR TO' clause in queries
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 09 Mar 2016 17:00:55 +0100 |
parents | 4b7f62a63297 |
children | f5b4784d9173 |
files | src/main/java/de/intevation/lada/query/QueryTools.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/query/QueryTools.java Fri Feb 19 14:55:17 2016 +0100 +++ b/src/main/java/de/intevation/lada/query/QueryTools.java Wed Mar 09 17:00:55 2016 +0100 @@ -231,7 +231,8 @@ } List<String> clean = new ArrayList<String>(); for(String p : param) { - clean.add(p.replace(",", "|")); + p = p.trim(); + clean.add(p.replace(" ", "|")); } query.setParameter(filter.getDataIndex(), clean); }