Description

None

Environment

Cassandra server 2.2
PHP 7.2
Debian Stretch
C++ driver 2.11.0

Pull Requests

None

Activity

Show:
Derek Chan
February 17, 2020 at 8:32 AM
(edited)

This is being resolved via https://datastax-oss.atlassian.net/browse/CPP-747 .

To connect to a “case-sensitive” keyspace such as MyKeyspace, depending on the version (v) of C++ driver:

  • v <= 2.9.0 : $cluster->connect('MyKeyspace');

  • 2.9.0 < v <= 2.15.0 : Does not work

  • v > 2.15.0 : $cluster->connect('"MyKeyspace"');

 

Derek Chan
February 1, 2019 at 1:57 AM

I see. Thank you!

Michael Fero
January 31, 2019 at 3:07 PM

Thank you for reporting the issue. I was able to reproduce; however I did not narrow down the culprit yet (either the C/C++ driver or the PHP extension code). As a work around you can create a session without the keyspace and use fully qualified names until a fix is in place:

$session = $cluster->connect(); $statement = new Cassandra\SimpleStatement( "SELECT id FROM {$keyspace}.test LIMIT 1" );
Querying [lowercase]... Array ( [id] => 1 ) Querying ["UpperCase"]... Array ( [id] => 2 )

Details

Assignee

Unassigned

Reporter

Derek Chan

Reproduced in

External issue ID

CPP-747

Affects versions

Priority

Major