[
https://issues.apache.org/jira/browse/CASSANDRA-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475384#comment-13475384
]
Brandon Williams commented on CASSANDRA-4801:
---------------------------------------------
It looks like we can check socket.has_ipv6 to decide between inet_ntop and
inet_ntoa, and if there are more than 4 bytes just display the escaped bytes.
In other words, ipv4 would work on windows but not ipv6.
> inet datatype does not work with cqlsh on windows
> -------------------------------------------------
>
> Key: CASSANDRA-4801
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4801
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.2.0 beta 1
> Environment: Windows 7, Python 2.7.2
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Labels: cqlsh, windows
> Fix For: 1.2.0 beta 2
>
>
> {noformat}
> create keyspace foo with replication = {'class': 'SimpleStrategy',
> 'replication_factor': '1'};
> use foo;
> create table one (id int primary key, c int);
> TRACING ON;
> insert into one (id, c) values (1, 2);
> value '\x7f\x00\x00\x01' (in col 'source') can't be deserialized as inet:
> 'module' object has no attribute 'inet_ntop'
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira