Netflix / astyanax

Cassandra Java Client
Apache License 2.0
1.04k stars 355 forks source link

java-beta-driver 2 does not work with keyspaces with uppercases #553

Open jdelgad opened 9 years ago

jdelgad commented 9 years ago
103 private CqlKeyspaceImpl(Session session, String ksName, AstyanaxConfiguration asConfig, KeyspaceTracerFactory tracerFactory, ConnectionPoolConfiguration cpConfig, ConnectionPoolMonitor cpMonitor) {
104     this.session = session;
105     this.keyspaceName = ksName.toLowerCase();
106     this.astyanaxConfig = asConfig;

Line 105 in CqlKeyspaceImpl.java converts all keyspace names into lowercase. The official datastax driver checks to see if quotes are escape and if they are does not convert to lowercase. This should be the behavior of astyanax as well.