Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Invalid
-
None
-
None
-
Normal
Description
When using org.apache.cassandra.cql.jdbc.CResultSet getColumn to retrieve col data you will always be missing the first one.
ex: SELECT name, pwd from user;
returns only pwd.
The issue is at http://code.google.com/a/apache-extras.org/p/cassandra-jdbc/source/browse/src/org/apache/cassandra/cql/jdbc/CResultSet.java#348
The call to checkIndex passes, but the values.get(index) call causes the lookup to go over the ArrayList size.
This needs to be changed to:
values.get(index - 1)