# IGNITE-143 - Fixed query validation

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

Branch: refs/heads/ignite-143
Commit: a9487e50f0be08c761c9672ed58d0e7e891cca2e
Parents: 7e5bc32
Author: Valentin Kulichenko <vkuliche...@gridgain.com>
Authored: Fri Feb 13 12:29:10 2015 -0800
Committer: Valentin Kulichenko <vkuliche...@gridgain.com>
Committed: Fri Feb 13 12:29:10 2015 -0800

----------------------------------------------------------------------
 .../apache/ignite/internal/processors/cache/IgniteCacheProxy.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a9487e50/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
index 921ba64..ab5dbbd 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
@@ -475,7 +475,7 @@ public class IgniteCacheProxy<K, V> extends 
AsyncSupportAdapter<IgniteCache<K, V
      * @throws CacheException If query indexing disabled for sql query.
      */
     private void validate(Query qry) {
-        if (!(qry instanceof ScanQuery) && !ctx.config().isQueryIndexEnabled())
+        if (!(qry instanceof ScanQuery) && !(qry instanceof ContinuousQuery) 
&& !ctx.config().isQueryIndexEnabled())
             throw new CacheException("Indexing is disabled for cache: " + 
ctx.cache().name());
     }
 

Reply via email to