Fix autocompletion for alter keyspace patch by Rajanarayanan Thottuvaikkatumana; reviewed by Mikhail Stepura for CASSANDRA-8021
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1d02d7b3 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1d02d7b3 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1d02d7b3 Branch: refs/heads/trunk Commit: 1d02d7b34eafd0594ffc87608ac816fb5af39b89 Parents: cc8eeef Author: Rajanarayanan Thottuvaikkatumana <rnambood...@gmail.com> Authored: Tue Oct 14 10:36:53 2014 -0700 Committer: Mikhail Stepura <mish...@apache.org> Committed: Tue Oct 14 10:36:53 2014 -0700 ---------------------------------------------------------------------- CHANGES.txt | 1 + pylib/cqlshlib/cql3handling.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/1d02d7b3/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 2faea63..8b462f1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.0.11: + * (cqlsh) Fix autocompletion for alter keyspace (CASSANDRA-8021) * Create backup directories for commitlog archiving during startup (CASSANDRA-8111) * Reduce totalBlockFor() for LOCAL_* consistency levels (CASSANDRA-8058) * Fix merging schemas with re-dropped keyspaces (CASSANDRA-7256) http://git-wip-us.apache.org/repos/asf/cassandra/blob/1d02d7b3/pylib/cqlshlib/cql3handling.py ---------------------------------------------------------------------- diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py index 01818ca..c08088a 100644 --- a/pylib/cqlshlib/cql3handling.py +++ b/pylib/cqlshlib/cql3handling.py @@ -993,7 +993,7 @@ def alter_table_col_completer(ctxt, cass): explain_completion('alterInstructions', 'newcol', '<new_column_name>') syntax_rules += r''' -<alterKeyspaceStatement> ::= "ALTER" ( "KEYSPACE" | "SCHEMA" ) ks=<alterableKeyspaceName> +<alterKeyspaceStatement> ::= "ALTER" wat=( "KEYSPACE" | "SCHEMA" ) ks=<alterableKeyspaceName> "WITH" <property> ( "AND" <property> )* ; '''