cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject git commit: Fix exception text in SelectStatement
Date Tue, 23 Jul 2013 21:50:52 GMT
Updated Branches:
  refs/heads/cassandra-1.2 66bd60590 -> 25a46eae5


Fix exception text in SelectStatement


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

Branch: refs/heads/cassandra-1.2
Commit: 25a46eae5d1f6b48a490a4e77eb4df7c81a436d9
Parents: 66bd605
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Wed Jul 24 00:49:52 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Wed Jul 24 00:49:52 2013 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/statements/SelectStatement.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/25a46eae/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
index 2a2b33a..8343d1e 100644
--- a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
@@ -1157,7 +1157,7 @@ public class SelectStatement implements CQLStatement
 
                     // We don't support IN for indexed values (basically this would require
supporting a form of OR)
                     if (restriction.eqValues.size() > 1)
-                        throw new InvalidRequestException("Cannot use IN operator on column
not part of the PRIMARY KEY");
+                        throw new InvalidRequestException("Cannot use IN operator on column
not part of the partition key");
 
                     if (indexedNames.contains(entry.getKey().name.key))
                     {


Mime
View raw message