cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/2] git commit: Ninja-fix counter-in-primary-key validation exception message
Date Sat, 07 Jun 2014 20:45:20 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 0dbb4e028 -> 429e5cf19


Ninja-fix counter-in-primary-key validation exception message


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

Branch: refs/heads/cassandra-2.0
Commit: ce98b2de09641772f4466593c6b650906e66fad7
Parents: f727381
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Sat Jun 7 23:40:40 2014 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Sat Jun 7 23:40:40 2014 +0300

----------------------------------------------------------------------
 .../cassandra/cql3/statements/CreateColumnFamilyStatement.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ce98b2de/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
index cd4be71..abb450c 100644
--- a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
@@ -252,7 +252,7 @@ public class CreateColumnFamilyStatement extends SchemaAlteringStatement
 
                         AbstractType<?> type = getTypeAndRemove(stmt.columns, t);
                         if (type instanceof CounterColumnType)
-                            throw new InvalidRequestException(String.format("counter type
is not supported for PRIMARY KEY part %s", t.key));
+                            throw new InvalidRequestException(String.format("counter type
is not supported for PRIMARY KEY part %s", t));
                         types.add(type);
                     }
 


Mime
View raw message