iconara / cql-rb

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

Prepare statement again when it is lost #126

Closed stenlarsson closed 9 years ago

stenlarsson commented 9 years ago

If an ALTER TABLE is performed the prepared statements are lost. In this case the statement should be prepared again.

stenlarsson commented 9 years ago

Added constants for all error codes.

iconara commented 9 years ago

One final request: put the ErrorCodes module inside of the Protocol module.

stenlarsson commented 9 years ago

The Protocol module is private, so if I do that the error codes will not be visible in the documentation.

iconara commented 9 years ago

Good point. It doesn't look like it's possible to make Yard understand that it should show the constants as public under QueryError when they are included there while also hiding ErrorCodes (or even making ErrorCodes visible when Protocol is private).

iconara commented 9 years ago

I'll release this as v2.0.5