basho/riak_pb — pull request #12 by russelldb (2012-07-13 10:48:53+00:00)
Title: Add clause to to_binary/1 that handles an integer() value

The riak java client tests were failing with an int index value since the last commit.

The decode_pair/1 returns exactly what it is given so the int index
value was written to riak, but when returned on the fetch it was
not able to be encoded since there was no clause for integers in
to_binary/1. This adds that clause (and a test.)

Should we actually force to_binary on decode_pair?