Skip to content

Commit be5696d

Browse files
committed
RUBY-220 - Plumbing to support custom types: serializing and deserializing custom domain objects defined by the client.
* Handle custom type validation in binding prepared statements properly.
1 parent 7089ad7 commit be5696d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cassandra/types.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,8 @@ def new(*value)
13891389
# @raise [ArgumentError] if the value is invalid
13901390
# @return [void]
13911391
def assert(value, message = nil, &block)
1392-
raise ::NotImplementedError,
1393-
"unable to assert a value for custom type: #{@name.inspect}"
1392+
Util.assert_instance_of(CustomData, value, message, &block)
1393+
Util.assert_equal(self, value.class.type, message, &block)
13941394
end
13951395

13961396
# @return [String] a cassandra representation of this type

0 commit comments

Comments
 (0)