[ https://issues.apache.org/jira/browse/CASSANDRA-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149867#comment-13149867 ]
paul cannon commented on CASSANDRA-3418: ---------------------------------------- This doesn't do the right thing when minusing a negative value, like: {noformat} UPDATE validation_cf_counter SET test = test - -1 WHERE id='test_key'; {noformat} It subtracts 1, instead of adding 1. > Counter decrements require a space around the minus sign but not around the > plus sign > ------------------------------------------------------------------------------------- > > Key: CASSANDRA-3418 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3418 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Kelley Reynolds > Assignee: Pavel Yaskevich > Priority: Minor > Labels: cql > Fix For: 1.0.3 > > Attachments: CASSANDRA-3418.patch > > > UPDATE validation_cf_counter SET test=test+1 WHERE id='test_key' => Success > UPDATE validation_cf_counter SET test=test + 1 WHERE id='test_key' => Success > UPDATE validation_cf_counter SET test=test - 1 WHERE id='test_key' => Success > UPDATE validation_cf_counter SET test=test-1 WHERE id='test_key' => Failure > (line 1:38 no viable alternative at input 'test') -- 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