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:
Tomasz Grabiec
2015-07-22 17:55:50 +02:00
parent 47e006bfae
commit 76bf7b228c

View File

@@ -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;