mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 08:30:35 +00:00
cql: token_restriction: Fix range produced for contradicting restrictions
We want to return no results in this case, so we should return no range instead of range open on both sides, which yields all data.
This commit is contained in:
@@ -99,7 +99,7 @@ public:
|
||||
if (start_token > end_token
|
||||
|| (start_token == end_token
|
||||
&& (!include_start || !include_end))) {
|
||||
return {query::partition_range::make_open_ended_both_sides()};
|
||||
return {};
|
||||
}
|
||||
|
||||
typedef typename bounds_range_type::bound bound;
|
||||
|
||||
Reference in New Issue
Block a user