문제

I just created Column family by phpcassa , Following is the code

$sys = new SystemManager('127.0.0.1');
$sys->create_column_family('demo', 'Users');
$pool = new ConnectionPool('demo', array('localhost'));
$users = new ColumnFamily($pool, 'Users');
$users->insert('user0', array("name" => "joe", "state" => "TX"));
$users->insert('user1', array("name" => "bob", "state" => "CA"));

when I use cqlsh and go to demo keyspace I am not able to select any record from it, it straightly tell me

cqlsh:demo> select * from Users;
Bad Request: unconfigured columnfamily users
cqlsh:demo> select * from users;
Bad Request: unconfigured columnfamily users

Also reverse case, when I am making any table in cqlsh using CREATE TABLE syntax phpcassa not able to find it and throw NOTFOUND exeception.

도움이 되었습니까?

해결책

You'll need to use doublequotes to force case sensitivity from cqlsh:

select * from "Users";

Better: just leave it lowercase.

다른 팁

I figure it out, it is version issue table created with CQL version 3.0 is not visible to phpcassa when I created table with CQL 2.0 it is coming in phpcassa without any problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top