[ https://issues.apache.org/jira/browse/CASSANDRA-14359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442453#comment-16442453
]
Andrés de la Peña commented on CASSANDRA-14359:
-----------------------------------------------
Thanks for reviewing, committed as [9b5ba6ca51e6e35116fbac715cb0e1d3b7eb94f3|https://github.com/apache/cassandra/commit/9b5ba6ca51e6e35116fbac715cb0e1d3b7eb94f3].
> CREATE TABLE fails if there is a column called "default" with Cassandra 3.11.2
> ------------------------------------------------------------------------------
>
> Key: CASSANDRA-14359
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14359
> Project: Cassandra
> Issue Type: Bug
> Components: CQL, Documentation and Website
> Environment: This is using Cassandra 3.11.2. This syntax was accepted in 2.1.20.
> Reporter: Andy Klages
> Assignee: Andrés de la Peña
> Priority: Minor
> Fix For: 4.0, 3.0.17, 3.11.3
>
>
> My project is upgrading from Cassandra 2.1 to 3.11. We have a table whose column name
is "default". The Cassandra 3.11.2 is rejecting it. I don't see "default" as a keyword in
the CQL spec.
> To reproduce, try adding the following:
> {code:java}
> CREATE TABLE simple (
> simplekey text PRIMARY KEY,
> default text // THIS IS REJECTED
> );
> {code}
> I get this error:
> {code:java}
> SyntaxException: line 3:4 mismatched input 'default' expecting ')' (... simplekey
text PRIMARY KEY, [default]...)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org
|