diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py index a83c6535b8..b138d2228f 100644 --- a/pylib/cqlshlib/cql3handling.py +++ b/pylib/cqlshlib/cql3handling.py @@ -268,6 +268,7 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ; | | | + | ; ::= @@ -328,6 +329,10 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ; | ; + ::= + | + ; + # timestamp is included here, since it's also a keyword ::= typename=( | | "timestamp" ) ; @@ -1773,6 +1778,14 @@ def username_name_completer(ctxt, cass): session = cass.session return map(maybe_escape_name, [row['name'] for row in session.execute("LIST USERS")]) +syntax_rules += r''' + ::= "ADD" "IDENTITY" ( "IF" "NOT" "EXISTS" )? + "TO" "ROLE" + ; + ::= "DROP" "IDENTITY" ( "IF" "NOT" "EXISTS" )? + ; +''' + @completer_for('rolename', 'role') def rolename_completer(ctxt, cass):