cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject cassandra git commit: Correct IRE message in DropTypeStatement::validate
Date Fri, 06 Nov 2015 11:02:10 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 1e4d44e18 -> dc7e8405b


Correct IRE message in DropTypeStatement::validate


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

Branch: refs/heads/cassandra-3.0
Commit: dc7e8405bdc7fc26bb2eb3051d13f5d35c761ac8
Parents: 1e4d44e
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Fri Nov 6 11:01:40 2015 +0000
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri Nov 6 11:01:55 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/dc7e8405/src/java/org/apache/cassandra/cql3/statements/DropTypeStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/DropTypeStatement.java b/src/java/org/apache/cassandra/cql3/statements/DropTypeStatement.java
index 74c8c36..d104b73 100644
--- a/src/java/org/apache/cassandra/cql3/statements/DropTypeStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/DropTypeStatement.java
@@ -85,7 +85,7 @@ public class DropTypeStatement extends SchemaAlteringStatement
 
         for (UserType ut : ksm.types)
             if (!ut.name.equals(name.getUserTypeName()) && isUsedBy(ut))
-                throw new InvalidRequestException(String.format("Cannot drop user type %s
as it is still used by user type %s", name, ut.asCQL3Type()));
+                throw new InvalidRequestException(String.format("Cannot drop user type %s
as it is still used by user type %s", name, ut.getNameAsString()));
 
         for (CFMetaData cfm : ksm.tablesAndViews())
             for (ColumnDefinition def : cfm.allColumns())


Mime
View raw message