mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-22 07:42:16 +00:00
cql3: maps: remove unnecessary use of with_linearized
We can validate directly from fragmented buffers now.
This commit is contained in:
@@ -261,9 +261,7 @@ maps::marker::bind(const query_options& options) {
|
||||
return constants::UNSET_VALUE;
|
||||
}
|
||||
try {
|
||||
with_linearized(*val, [&] (bytes_view value) {
|
||||
_receiver->type->validate(value, options.get_cql_serialization_format());
|
||||
});
|
||||
_receiver->type->validate(*val, options.get_cql_serialization_format());
|
||||
} catch (marshal_exception& e) {
|
||||
throw exceptions::invalid_request_exception(
|
||||
format("Exception while binding column {:s}: {:s}", _receiver->name->to_cql_string(), e.what()));
|
||||
|
||||
Reference in New Issue
Block a user