pingles / clj-hector

Simple Cassandra client for Clojure
42 stars 19 forks source link

Fixed exception for CQL queries that returned empty result set #31

Closed mstump closed 12 years ago

mstump commented 12 years ago

Fixed bug where CQL queries with no results were causing exceptions because the to-clojure protocol couldn't deal with a null value from QueryResultImpl. We now check if (.get QueryResultImpl) returns null, and if so return an empty map. Also added unit tests for this case, and empty result set for standard row fetch.

nickmbailey commented 12 years ago

Looks good. Thanks Matt!