cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3350) Can't USE numeric keyspace names in CQL
Date Wed, 12 Oct 2011 15:23:12 GMT

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

Hudson commented on CASSANDRA-3350:
-----------------------------------

Integrated in Cassandra-0.8 #367 (See [https://builds.apache.org/job/Cassandra-0.8/367/])
    allow numeric keyspace names in USE statement
patch by pyaskevich; reviewed by jbellis for CASSANDRA-3350

jbellis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182413
Files : 
* /cassandra/branches/cassandra-0.8/CHANGES.txt
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cql/Cql.g
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cql/QueryProcessor.java

                
> Can't USE numeric keyspace names in CQL
> ---------------------------------------
>
>                 Key: CASSANDRA-3350
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3350
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.0 beta 2
>            Reporter: paul cannon
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>              Labels: lhf
>             Fix For: 0.8.8, 1.0.1
>
>         Attachments: CASSANDRA-3350.patch
>
>
> Cassandra allows keyspace names to start with a digit or an underscore (see o.a.c.db.migration.Migration.isLegalName),
but CQL's {{USE}} statement only accepts a CQL identifier, which must start with a letter.
So there's no way to use a keyspace named "142" or "\_hi\_" in CQL, for example.
> The {{USE}} statement should accept string literals and integers as well as identifiers,
and CQL identifiers ({{IDENT}}) should probably allow starting with the underscore.

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

        

Mime
View raw message