You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2013/09/19 14:34:23 UTC
svn commit: r1524714 - in /syncope/trunk: ./
core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
Author: ilgrosso
Date: Thu Sep 19 12:34:22 2013
New Revision: 1524714
URL: http://svn.apache.org/r1524714
Log:
[SYNCOPE-416] Merge from 1_1_X
Modified:
syncope/trunk/ (props changed)
syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
Propchange: syncope/trunk/
------------------------------------------------------------------------------
Merged /syncope/branches/1_1_X:r1524644-1524713
Modified: syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java?rev=1524714&r1=1524713&r2=1524714&view=diff
==============================================================================
--- syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java (original)
+++ syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java Thu Sep 19 12:34:22 2013
@@ -416,13 +416,13 @@ public class AttributableSearchDAOImpl e
if (not) {
query.append(" NOT ");
}
- query.append(" LIKE '").append(cond.getExpression()).append("'");
+ query.append(" LIKE ?").append(setParameter(parameters, cond.getExpression()));
} else {
if (!(cond instanceof AttributableCond)) {
query.append("' AND");
}
query.append(" 1=2");
- LOG.error("LIKE is only compatible with string schemas");
+ LOG.error("LIKE is only compatible with string or enum schemas");
}
break;