Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Fixing bug with appending varint of 0. #112

Closed
wants to merge 1 commit into from
Closed

Fixing bug with appending varint of 0. #112

wants to merge 1 commit into from

Conversation

ndrwdn
Copy link
Contributor

@ndrwdn ndrwdn commented Jun 26, 2014

Our team discovered an issue with saving a BigDecimal value of "0.0". We found that the append_varint method in cql_byte_buffer.rb doesn't encode the number 0. This commit fixes append_varint, fixing the usage of BigDecimal "0.0".

@iconara
Copy link
Owner

iconara commented Jun 26, 2014

Great, thanks. Feels like I should have had a test for zero, seems obvious in hindsight. I'll merge shortly. Do you need a new version released soon?

@ndrwdn
Copy link
Contributor Author

ndrwdn commented Jun 26, 2014

You're welcome!

Soon would be ideal, but we are not in a huge rush either.

@iconara
Copy link
Owner

iconara commented Jun 26, 2014

I changed the fix around a bit and added a separate test for BigDecimal.new('0.0') to make sure we don't regress in the future (see 63271fb).

I'll release v2.0.1 shortly.

@iconara iconara closed this Jun 26, 2014
@iconara
Copy link
Owner

iconara commented Jun 26, 2014

I've pushed v2.0.1 to RubyGems now.

@ndrwdn
Copy link
Contributor Author

ndrwdn commented Jun 27, 2014

Great! Thank you for the quick response!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants