[Lada-commits] [PATCH] Replaced replaceable character for 'SIMILAR TO' clause in queries

Wald Commits scm-commit at wald.intevation.org
Thu Mar 10 10:15:54 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1457539255 -3600
# Node ID 9258cce7bcbd9025cb2614fe5d7d90ef13d33b08
# Parent  4b7f62a63297cb871dde50cc2748562ce7dc1a95
Replaced replaceable character for 'SIMILAR TO' clause in queries

diff -r 4b7f62a63297 -r 9258cce7bcbd src/main/java/de/intevation/lada/query/QueryTools.java
--- 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);
         }


More information about the Lada-commits mailing list