You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Corey Hulen <co...@yahoo.com> on 2011/09/28 07:54:12 UTC

bug in TypesMap.java


Looks like there is a bug where you cannot read a counter from the jdbc cql driver.

it appears on line #36 in src/java/org/apache/cassandra/cql/jdbc/TypesMap.java  (notice it's in the portion of code that sits in the main src dir not the drivers)

map.put("org.apache.cassandra.db.marshal.ColumnCounterType", JdbcCounterColumn.instance);


should be 

map.put("org.apache.cassandra.db.marshal.CounterColumnType",JdbcCounterColumn.instance);



I'm not subscribed to this mailing list so please cc me.


Thanks,
-Corey

Re: bug in TypesMap.java

Posted by Jonathan Ellis <jb...@gmail.com>.
(I saw https://issues.apache.org/jira/browse/CASSANDRA-3268 first, I
guess you wrote this first but it had to wait in a moderation queue.
We'll address it in Jira.)

On Wed, Sep 28, 2011 at 12:54 AM, Corey Hulen <co...@yahoo.com> wrote:
>
>
> Looks like there is a bug where you cannot read a counter from the jdbc cql driver.
>
> it appears on line #36 in src/java/org/apache/cassandra/cql/jdbc/TypesMap.java  (notice it's in the portion of code that sits in the main src dir not the drivers)
>
> map.put("org.apache.cassandra.db.marshal.ColumnCounterType", JdbcCounterColumn.instance);
>
>
> should be
>
> map.put("org.apache.cassandra.db.marshal.CounterColumnType",JdbcCounterColumn.instance);
>
>
>
> I'm not subscribed to this mailing list so please cc me.
>
>
> Thanks,
> -Corey



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com