Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
trunk-4910ce8
java version "1.7.0_45"
-
Low
Description
ALTER TYPE DROP complains that there is no active keyspace (even when the session has an active keyspace). The drop works when the prefix is provided.
steps to reproduce:
ccm create test_cluster ccm populate -n 1 ccm start ccm node1 cqlsh Connected to test_cluster at 127.0.0.1:9160. [cqlsh 4.1.1 | Cassandra 2.1-SNAPSHOT | CQL spec 3.1.1 | Thrift protocol 19.39.0] Use HELP for help. cqlsh> create keyspace user_type_dropping with replication = {'class':'SimpleStrategy', 'replication_factor':1} ; cqlsh> use user_type_dropping ; cqlsh:user_type_dropping> CREATE TYPE simple_type ( ... user_number int ... ); cqlsh:user_type_dropping> DROP TYPE simple_type; Bad Request: You have not set a keyspace for this session cqlsh:user_type_dropping> DROP TYPE user_type_dropping.simple_type;