[
https://issues.apache.org/jira/browse/CASSANDRA-11664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300242#comment-15300242
]
Tyler Hobbs commented on CASSANDRA-11664:
-----------------------------------------
bq. 2) When you type a mixed-case name without double quote, it is not
accepted. (e.g. use Test; issues an error, while use "Test"; works fine).
This is expected behavior. By default, Cassandra identifiers are case
insensitive. However, you "create" an identifier with double quotes, it
becomes case sensitive. So, if you do {{CREATE KEYSPACE "Foobar"}}, you must
always use {{"Foobar"}} as the identifier -- anything else won't be accepted.
> Tab completion in cqlsh doesn't work for capitalized letters
> ------------------------------------------------------------
>
> Key: CASSANDRA-11664
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11664
> Project: Cassandra
> Issue Type: Bug
> Reporter: J.B. Langston
> Assignee: Mahdi Mohammadi
> Priority: Minor
> Labels: cqlsh
>
> Tab completion in cqlsh doesn't work for capitalized letters, either in
> keyspace names or table names. Typing quotes and a corresponding capital
> letter should complete the table/keyspace name and the closing quote.
> {code}
> cqlsh> create keyspace "Test" WITH replication = {'class': 'SimpleStrategy',
> 'replication_factor': 1};
> cqlsh> use "Tes
> cqlsh> use tes
> cqlsh> use Test;
> InvalidRequest: code=2200 [Invalid query] message="Keyspace 'test' does not
> exist"
> cqlsh> use "Test";
> cqlsh:Test> drop keyspace "Test"
> cqlsh:Test> create table "TestTable" (a text primary key, b text);
> cqlsh:Test> select * from "TestTable";
> a | b
> ---+---
> (0 rows)
> cqlsh:Test> select * from "Test
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)