You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2012/08/01 09:31:34 UTC

[jira] [Updated] (CASSANDRA-4477) cql3: defining more than one pk should be invalid

     [ https://issues.apache.org/jira/browse/CASSANDRA-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain Lebresne updated CASSANDRA-4477:
----------------------------------------

    Attachment: 4477.txt

Attached patch to fix the issue and correctly refuse invalid PK definitions.
                
> cql3: defining more than one pk should be invalid
> -------------------------------------------------
>
>                 Key: CASSANDRA-4477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4477
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>            Reporter: Brandon Williams
>            Assignee: Sylvain Lebresne
>              Labels: cql3
>             Fix For: 1.2
>
>         Attachments: 4477.txt
>
>
> dtests caught this on trunk:
> {noformat}
>   File "/var/lib/buildbot/cassandra-dtest/cql_tests.py", line 277, in create_invalid_test
>     assert_invalid(cursor, "CREATE TABLE test (key1 text PRIMARY KEY, key2 text PRIMARY KEY)")
>   File "/var/lib/buildbot/cassandra-dtest/assertions.py", line 31, in assert_invalid
>     assert False, "Expecting query to be invalid"
> AssertionError: Expecting query to be invalid
> {noformat}

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