kreynolds / cassandra-cql

DBI-like CQL driver for Cassandra in Ruby
Apache License 2.0
67 stars 43 forks source link

Authentication error #50

Closed tlewin closed 11 years ago

tlewin commented 11 years ago

On Database initialize execute USE command before login operation. This raise an error an the object is not created.

jnunemaker commented 11 years ago

It defaults the keyspace to system (which always exists) if none is provided. I don't see the need for this change.

tlewin commented 11 years ago

The problema occurs when the server needs authentication. The command "USE system;" raise an exception askin for login and doesn't create the Database object, so I can't call the login! method.

tlewin commented 11 years ago

Hi,

Any comment on this? I am working with patched version, which is not good, since it is complicated to maintain updates. I believe the specs fails because the test is executed on database that does not require authentication.

Regards!

kreynolds commented 11 years ago

@tlewin I just merged in a giant PR for Cassandra 1.2, please rebase and ensure that this still passes.

vicentllongo commented 11 years ago

Hi,

I just sent an alternative fix for this issue in the pull request #56

kreynolds commented 11 years ago

Closing, this appears to be solved with #56.