diff --git a/CHANGES.txt b/CHANGES.txt index 2f8360c6df..5609797686 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -25,6 +25,7 @@ * Configurable client timeout for cqlsh (CASSANDRA-7516) * Include snippet of CQL query near syntax error in messages (CASSANDRA-7111) Merged from 2.0: + * (cqlsh) Add tab-completion for CREATE/DROP USER IF [NOT] EXISTS (CASSANDRA-7611) * Catch errors when the JVM pulls the rug out from GCInspector (CASSANDRA-5345) diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py index a6763197b3..72461db0f9 100644 --- a/pylib/cqlshlib/cql3handling.py +++ b/pylib/cqlshlib/cql3handling.py @@ -1089,7 +1089,7 @@ syntax_rules += r''' ::= name=( | ) ; - ::= "CREATE" "USER" + ::= "CREATE" "USER" ( "IF" "NOT" "EXISTS" )? ( "WITH" "PASSWORD" )? ( "SUPERUSER" | "NOSUPERUSER" )? ; @@ -1099,7 +1099,7 @@ syntax_rules += r''' ( "SUPERUSER" | "NOSUPERUSER" )? ; - ::= "DROP" "USER" + ::= "DROP" "USER" ( "IF" "EXISTS" )? ; ::= "LIST" "USERS"