[jira] [Updated] (CASSANDRA-7804) Confusing error message when condition is set on primary key column
[ https://issues.apache.org/jira/browse/CASSANDRA-7804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna updated CASSANDRA-7804: Labels: LWT (was: ) > Confusing error message when condition is set on primary key column > --- > > Key: CASSANDRA-7804 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7804 > Project: Cassandra > Issue Type: Bug >Reporter: Tyler Hobbs >Assignee: Tyler Hobbs >Priority: Minor > Labels: LWT > Fix For: 2.1.1 > > Attachments: 7804-2.1.txt > > > If you set a CAS condition on a primary key column, you'll get an error > that's somewhat confusing: > {noformat} > cqlsh:ks1> CREATE TABLE mytable (a int PRIMARY KEY, b int); > cqlsh:ks1> UPDATE mytable SET b = 0 WHERE a = 0 IF a = 0; > code=2200 [Invalid query] message="PRIMARY KEY part a found in SET part" > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Updated] (CASSANDRA-7804) Confusing error message when condition is set on primary key column
[ https://issues.apache.org/jira/browse/CASSANDRA-7804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-7804: --- Attachment: 7804-2.1.txt The attached patch fixes the error message. Confusing error message when condition is set on primary key column --- Key: CASSANDRA-7804 URL: https://issues.apache.org/jira/browse/CASSANDRA-7804 Project: Cassandra Issue Type: Bug Components: Core Reporter: Tyler Hobbs Assignee: Tyler Hobbs Priority: Minor Fix For: 2.1.1 Attachments: 7804-2.1.txt If you set a CAS condition on a primary key column, you'll get an error that's somewhat confusing: {noformat} cqlsh:ks1 CREATE TABLE mytable (a int PRIMARY KEY, b int); cqlsh:ks1 UPDATE mytable SET b = 0 WHERE a = 0 IF a = 0; code=2200 [Invalid query] message=PRIMARY KEY part a found in SET part {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)