[ 
https://issues.apache.org/jira/browse/CASSANDRA-16539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Holmberg updated CASSANDRA-16539:
--------------------------------------
    Test and Documentation Plan: added new unit tests
                         Status: Patch Available  (was: In Progress)

Proposing a small tweak to cqlsh and adding a few quick tests that can be run 
in both python2 and 3.

[patch|https://github.com/aholmberg/cassandra/pull/51/files]
[ci|https://app.circleci.com/pipelines/github/aholmberg/cassandra?branch=CASSANDRA-16539]

> cqlsh encoding error with unicode in multi-line statement
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-16539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16539
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/cqlsh
>            Reporter: Adam Holmberg
>            Assignee: Adam Holmberg
>            Priority: Normal
>             Fix For: 4.0.x
>
>
> {noformat}
> CREATE TABLE test.users (
>     user_id int PRIMARY KEY,
>     name text,
>     state text
> )
> {noformat}
> Multiline cql with unicode characters will fail with an encoding error:
> {noformat}
> cqlsh> insert into test.users ( user_id, name, state ) values (
>    ... 6,
>    ... 'Bonne',
>    ... 'Année');
> 'ascii' codec can't encode character u'\xe9' in position 74: ordinal not in 
> range(128)
> {noformat}
> This is only when running Python 2.7 (deprecated in 4.0) and when python3 is 
> not present in the environment.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to