[
https://issues.apache.org/jira/browse/CASSANDRA-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Hobbs updated CASSANDRA-2507:
-----------------------------------
Attachment: 2507.txt
Attached patch fixes the issue by:
1. Not creating a new cursor for every line of CQL.
2. Updating the driver's view of the schema after DDL statements instead of
before them.
> Python CQL driver does not decode most values
> ---------------------------------------------
>
> Key: CASSANDRA-2507
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2507
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 0.8
> Reporter: Eric Evans
> Assignee: Tyler Hobbs
> Labels: cql
> Fix For: 0.8
>
> Attachments: 2507.txt, repro.cql
>
>
> Most keys, and column name/values are not decoded properly. The attached CQL
> input can be used to demonstrate:
> _Note: requires the patch from CASSANDRA-2505 to be applied_
> {noformat}
> $ drivers/py/cqlsh localhost 9170 < repro.cql
> | '\x00\x00\x00\x00\x00\x00\x00\x01','\x00\x00\x00\x00\x00\x00\x00\x01' |
> '\x00\x00\x00\x00\x00\x00\x00\x02','\x00\x00\x00\x00\x00\x00\x00\x02'
> e�#j������ |
> 'e\xe2#\x01j\xa2\x11\xe0\x00\x00\xfe\x8e\xbe\xea\xd9\xff','e\xe2#\x02j\xa2\x11\xe0\x00\x00\xfe\x8e\xbe\xea\xd9\xff'
> {noformat}
> For all practical purposes, this renders the driver useless for everything
> but strings.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira