Arvind Kandpal created CASSANDRA-21548:
------------------------------------------

             Summary: cqlsh prompt does not reset to default after dropping the 
current keyspace
                 Key: CASSANDRA-21548
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21548
             Project: Apache Cassandra
          Issue Type: Improvement
            Reporter: Arvind Kandpal


When a user is currently inside a keyspace in cqlsh and drops that exact same 
keyspace, the cqlsh prompt does not reset to the default `cqlsh>` prompt. 
Instead, it remains stuck showing the dropped keyspace name. 

+Steps to reproduce:+
1. Start cqlsh
2. CREATE KEYSPACE test_ks WITH replication = \{'class': 'SimpleStrategy', 
'replication_factor': 1};
3. USE test_ks;
4. DROP KEYSPACE test_ks;

+Expected Behavior:+
After dropping the keyspace, the prompt should automatically reset back to the 
default `cqlsh>`.

+Actual Behavior:+
The prompt remains stuck as `cqlsh:test_ks>`. If the user runs any table 
queries, it throws a "Keyspace does not exist" error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to