iconara / cql-rb

Cassandra CQL 3 binary protocol driver for Ruby
106 stars 31 forks source link

Batches of prepared statements should prepare the statement before retrying #117

Closed iconara closed 10 years ago

iconara commented 10 years ago

When Batch#execute encounters a connection where a prepared statement has not been prepared it handles this by retrying, but there's nothing that says that it will get a connection where the statement has been prepared on the next try. Instead it should do something like what PreparedStatement#execute does and make sure that the statement is prepared on the chosen connection.