You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Rick Shaw (JIRA)" <ji...@apache.org> on 2011/08/28 19:18:39 UTC
[jira] [Commented] (CASSANDRA-2664) JDBC driver for CQL works only
with Strings
[ https://issues.apache.org/jira/browse/CASSANDRA-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092517#comment-13092517 ]
Rick Shaw commented on CASSANDRA-2664:
--------------------------------------
This appears closable... There is no such method in the current code and all current methods in the {{PreparedStatement}} unit test succeed.
> JDBC driver for CQL works only with Strings
> -------------------------------------------
>
> Key: CASSANDRA-2664
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2664
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 0.8.0 beta 2
> Environment: It happens to JDBC driver for both: 0.8.0 beta version and 0.8.0-rc1
> Reporter: Roman Kuzmin
> Labels: cql, jdbc
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> CassandraPreparedStatement.java
> Line 141:
> String stringParam = makeCqlString(type.toString(param));
> It crashes with ClassCastException for all parameters that are not Strings. It is because, when the method applyDualBindings is called from makeUpdate it ALWAYS get one and the same "type" as parameter. In fact it is a comparator of columnfamily itself.
> In my case it is UTF8Type. And UTF8Type.toString() method expects only Strings.
> I think it must be column-dependent.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira