[ 
https://issues.apache.org/jira/browse/CASSANDRA-11664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15298985#comment-15298985
 ] 

Mahdi Mohammadi commented on CASSANDRA-11664:
---------------------------------------------

There are two separate issues here: 
1) cqlsh auto-complete does not consider mixed-case candidates.
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).

The first one seems to be only related to cqlsh part.
The second one is related to the server side, where when parsing the statement, 
removes casing from the identifier. If you debug the server side, you will 
notice that the casing is preserved until before parsing the statement.

> 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)

Reply via email to