[
https://issues.apache.org/jira/browse/CASSANDRA-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylvain Lebresne updated CASSANDRA-5022:
----------------------------------------
Attachment: 5002.txt
Attaching patch to fix that. The patch also move some small bit of validation
that were done at execution time to preparation time (since there is no good
reason not to do it there).
> Can't prepare an UPDATE query with a counter column (CQL3)
> ----------------------------------------------------------
>
> Key: CASSANDRA-5022
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5022
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.2.0 beta 2
> Reporter: Aleksey Yeschenko
> Assignee: Sylvain Lebresne
> Priority: Minor
> Fix For: 1.2.0 rc1
>
> Attachments: 5002.txt
>
>
> CQL3, binary protocol:
> demo(id int primary key, counter counter)
> Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?"
> yields 8704, "Invalid operation for commutative columnfamily counters" error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira