You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/03/30 21:58:50 UTC

[46/50] incubator-usergrid git commit: Strings in where clause must be quoted

Strings in where clause must be quoted


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/2eca36f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/2eca36f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/2eca36f0

Branch: refs/heads/two-dot-o-dev
Commit: 2eca36f0af78b61bab24acafbb5bc8858cfe40cf
Parents: efb7d6f
Author: Dave Johnson <dm...@apigee.com>
Authored: Mon Mar 30 09:48:37 2015 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Mon Mar 30 09:48:37 2015 -0400

----------------------------------------------------------------------
 .../apache/usergrid/corepersistence/CpEntityManagerFactory.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2eca36f0/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
index 9b7b2bb..e2e43ca 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
@@ -359,7 +359,7 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application
 
         final Results results = em.searchCollection(
             em.getApplicationRef(), CpNamingUtils.DELETED_APPLICATION_INFOS,
-            Query.fromQL("select * where " + PROPERTY_APPLICATION_ID + " = " + applicationId.toString()));
+            Query.fromQL("select * where " + PROPERTY_APPLICATION_ID + " = '" + applicationId.toString() + "'"));
         Entity deletedAppInfo = results.getEntity();
 
         if ( deletedAppInfo == null ) {