You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Manoj Kanta Mainali (Commented) (JIRA)" <ji...@apache.org> on 2012/04/06 15:59:23 UTC

[jira] [Commented] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

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

Manoj Kanta Mainali commented on CASSANDRA-4129:
------------------------------------------------

To be more specific, creating keyspaces like 'create keyspace keyspace' or 'create keyspace 'keyspace'' or 'create keyspace family' would fail and raise syntax error error.
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira