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:33:42 UTC
svn commit: r1524713 -
/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
Author: ilgrosso
Date: Thu Sep 19 12:33:42 2013
New Revision: 1524713
URL: http://svn.apache.org/r1524713
Log:
[SYNCOPE-416] Suggestion applied
Modified:
syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
Modified: syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java?rev=1524713&r1=1524712&r2=1524713&view=diff
==============================================================================
--- syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java (original)
+++ syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java Thu Sep 19 12:33:42 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;