mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
cql3: values: Add unset value to raw_value_view::make_temporary
When unset_value is passed to make_temporary it gets converted to null_value. This looks like a mistake, it should be just unset_value. Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>
This commit is contained in:
@@ -60,7 +60,9 @@ raw_value_view raw_value_view::make_temporary(raw_value&& value) {
|
||||
switch (value._data.index()) {
|
||||
case 0: return raw_value_view(managed_bytes(std::get<bytes>(value._data)));
|
||||
case 1: return raw_value_view(std::move(std::get<managed_bytes>(value._data)));
|
||||
default: return raw_value_view::make_null();
|
||||
case 2: return raw_value_view::make_null();
|
||||
case 3: return raw_value_view::make_unset_value();
|
||||
default: throw std::runtime_error(fmt::format("raw_value_view::make_temporary bad index: {}", value._data.index()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user