You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2013/09/20 16:48:40 UTC

git commit: allow parenthesis around where conditions in cql patch by dbrosius reviewed by slebresne for cassandra-6037

Updated Branches:
  refs/heads/cassandra-1.2 df046d6b4 -> a0fa69715


allow parenthesis around where conditions in cql
patch by dbrosius reviewed by slebresne for cassandra-6037


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

Branch: refs/heads/cassandra-1.2
Commit: a0fa69715f7913804fbd55c1280e0d35edd3bf0f
Parents: df046d6
Author: Dave Brosius <db...@apache.org>
Authored: Fri Sep 20 10:47:36 2013 -0400
Committer: Dave Brosius <db...@apache.org>
Committed: Fri Sep 20 10:47:36 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/Cql.g | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a0fa6971/src/java/org/apache/cassandra/cql3/Cql.g
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/Cql.g b/src/java/org/apache/cassandra/cql3/Cql.g
index 2445bf2..7101c71 100644
--- a/src/java/org/apache/cassandra/cql3/Cql.g
+++ b/src/java/org/apache/cassandra/cql3/Cql.g
@@ -791,6 +791,7 @@ relation[List<Relation> clauses]
         }
     | name=cident K_IN { Relation rel = Relation.createInRelation($name.id); }
        '(' ( f1=term { rel.addInValue(f1); } (',' fN=term { rel.addInValue(fN); } )* )? ')' { $clauses.add(rel); }
+    | '(' relation[$clauses] ')'
     ;
 
 comparatorType returns [CQL3Type t]