syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject [syncope] 03/04: [SYNCOPE-1412] removes debug statement
Date Mon, 10 Dec 2018 14:39:16 GMT
This is an automated email from the ASF dual-hosted git repository.

fmartelli pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit aa71d844226cd1a44ff134546583e8bd892ec95f
Author: fmartelli <fabio.martelli@gmail.com>
AuthorDate: Mon Dec 10 15:38:10 2018 +0100

    [SYNCOPE-1412] removes debug statement
---
 .../org/apache/syncope/core/persistence/jpa/dao/JPAAnySearchDAO.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAAnySearchDAO.java
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAAnySearchDAO.java
index 942cc95..0688100 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAAnySearchDAO.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAAnySearchDAO.java
@@ -877,7 +877,7 @@ public class JPAAnySearchDAO extends AbstractAnySearchDAO {
         StringBuilder query = new StringBuilder("SELECT DISTINCT any_id FROM ");
         switch (cond.getType()) {
             case ISNOTNULL:
-                query.append(svs.attr().name).append(" WHERE schema_id=").
+                query.append(svs.asSearchViewSupport().attr().name).append(" WHERE schema_id=").
                         append("'").append(checked.getLeft().getKey()).append("'");
                 break;
 
@@ -885,7 +885,8 @@ public class JPAAnySearchDAO extends AbstractAnySearchDAO {
                 query.append(svs.field().name).
                         append(" WHERE any_id NOT IN ").
                         append("(").
-                        append("SELECT DISTINCT any_id FROM ").append(svs.attr().name).append("
WHERE schema_id=").
+                        append("SELECT DISTINCT any_id FROM ").
+                        append(svs.asSearchViewSupport().attr().name).append(" WHERE schema_id=").
                         append("'").append(checked.getLeft().getKey()).append("'").
                         append(")");
                 break;


Mime
View raw message