UUID返回null值

时间:2013-07-13 09:59:41

标签: php zend-framework cassandra uuid

我正在使用Zend和PHPCassa在Cassandra中进行查询。 但是当我查询UUID值时,它返回null值。虽然在数据库中,它不是null。 什么问题 ? 查询创建表。

CREATE COLUMN FAMILY users
WITH comparator = UTF8Type
AND key_validation_class=UUIDType
AND column_metadata = [
{column_name: id, validation_class: UUIDType,index_type: KEYS}
{column_name: email, validation_class: UTF8Type,index_type: KEYS}
{column_name: password, validation_class: UTF8Type}
{column_name: full_name, validation_class: UTF8Type}
{column_name: id_facebook, validation_class: IntegerType}
{column_name: status, validation_class: IntegerType}
{column_name: address, validation_class: UTF8Type}
{column_name: phone, validation_class: UTF8Type}
{column_name: gender, validation_class: IntegerType}
{column_name: image, validation_class: UTF8Type}
{column_name: point, validation_class: IntegerType}
];

这是Zend中的代码

    public function getuser($username)
{
    set_time_limit (0);
    $sys = new SystemManager('127.0.0.1');
    $pool = new ConnectionPool('yuppie', array('127.0.0.1'));
    $users = new ColumnFamily($pool, 'users');
    $raw  = $pool->get();
    $rows = $raw->client->execute_cql_query("SELECT * FROM users", Compression::NONE);
    $result = $this->cql_get_pck($rows);
    return $result;

}

这是我使用此功能时的结果

Array
(
    [0] => Array
        (
            [KEY] => 
            [address] => TP HCM
            [email] => giangnt235@egood.vn
            [full_name] => Nguyá»…n TrÆ°á»ng Giang
            [gender] => 
            [id] => 
            [image] => abc.png
            [password] => e10adc3949ba59abbe56e057f20f883e
            [phone] => 01667039939
            [status] => 
        )

)

什么问题??? 抱歉,因为我的英文:)

0 个答案:

没有答案