1

I am using Cassandra 1.2.5 (cqlsh 3.0.2) and trying to inserting data in a small test-database with german characters which is not possible. I get back the message from cqlsh: "Bad Request: Input length = 1"

below is the setup of the keyspace, the table and the insert.

CREATE KEYSPACE test  WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
use test;

CREATE TABLE testdata (
id varchar,
text varchar,
PRIMARY KEY (id)

This is working:

insert into testdata (id, text) values ('4711', 'test');

This is not allowed:

insert into testdata (id, text) values ('4711', 'töst`);

->Bad Request: Input length = 1

my locale is :de_DE.UTF-8

Does Cassandra 1.2.5 has a problem with Umlaut ?

4

1 回答 1

3

我刚刚做了你发布的内容,它对我有用。然而,不同的一件事是,你用反引号完成了 'töst' 而不是单引号。这不允许我在 cqlsh 中完成语句。当我用 'töst' 替换它时,它成功了,我得到:

cqlsh:test> select * from testdata;

 id   | text
------+------
 4711 | töst
于 2013-07-02T12:27:27.607 回答