You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Peter Mädel (JIRA)" <ji...@apache.org> on 2014/08/26 16:13:58 UTC
[jira] [Updated] (CASSANDRA-7831) recreating a counter column after
dropping it leaves in unusable state
[ https://issues.apache.org/jira/browse/CASSANDRA-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Mädel updated CASSANDRA-7831:
-----------------------------------
Summary: recreating a counter column after dropping it leaves in unusable state (was: recreating a counter column after dropping it leaves it unusable state)
> recreating a counter column after dropping it leaves in unusable state
> ----------------------------------------------------------------------
>
> Key: CASSANDRA-7831
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7831
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Peter Mädel
>
> create table counter_bug (t int, c counter, primary key (t));
> update counter_bug set c = c +1 where t = 1;
> select * from counter_bug ;
>
> t | c
> ---+---
> 1 | 1
>
> (1 rows)
>
> alter table counter_bug drop c;
> alter table counter_bug add c counter;
> update counter_bug set c = c +1 where t = 1;
> select * from counter_bug;
>
> (0 rows)
> update counter_bug set c = c +1 where t = 2;
> select * from counter_bug;
>
> (0 rows)
--
This message was sent by Atlassian JIRA
(v6.2#6252)