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

Commit

Permalink
Merge branch 'fix_counters' into v1.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
iconara committed Sep 10, 2013
2 parents c4ad7bc + 493aca1 commit 1e2c816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cql/protocol/type_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def to_bytes_converters
:bigint => method(:bigint_to_bytes),
:blob => method(:blob_to_bytes),
:boolean => method(:boolean_to_bytes),
:counter => method(:bigint_to_bytes),
:decimal => method(:decimal_to_bytes),
:double => method(:double_to_bytes),
:float => method(:float_to_bytes),
Expand Down
2 changes: 1 addition & 1 deletion spec/cql/protocol/type_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Protocol
''
end

TYPES = [:ascii, :bigint, :blob, :boolean, :decimal, :double, :float, :inet, :int, :text, :varchar, :timestamp, :timeuuid, :uuid, :varint].freeze
TYPES = [:ascii, :bigint, :blob, :boolean, :counter, :decimal, :double, :float, :inet, :int, :text, :varchar, :timestamp, :timeuuid, :uuid, :varint].freeze

describe '#to_bytes' do
context 'when encoding normal value' do
Expand Down

0 comments on commit 1e2c816

Please sign in to comment.