evseevnn-zz / php-cassandra-binary

PHP library for Cassandra database via a binary protocol.
http://evseevnn.github.io/php-cassandra-binary/
MIT License
69 stars 33 forks source link

Node selection #16

Closed riekelt closed 10 years ago

riekelt commented 10 years ago

When using new \Cassandra\Database(["10.10.0.1"], 'keyspace') the connection fails, because it tries to connect to "0" (the array key).

The error is in Cluster.php on line 41: Should be $node = new Node($node); instead of $node = new Node($nodeKey);

evseevnn-zz commented 10 years ago

Thank you. Fixed in 5517bdae7df4d7b41ea47af1c2e0ff9909ad8f54.