From eea4e349ea1c5ce98534c71e43666b34f875be99 Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Mon, 20 Nov 2017 11:26:29 +0000 Subject: [PATCH] cql3/single_column_primary_key_restrictions: Implement is_inclusive() Signed-off-by: Duarte Nunes --- cql3/restrictions/single_column_primary_key_restrictions.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cql3/restrictions/single_column_primary_key_restrictions.hh b/cql3/restrictions/single_column_primary_key_restrictions.hh index e080af78b1..e5dfe30eb2 100644 --- a/cql3/restrictions/single_column_primary_key_restrictions.hh +++ b/cql3/restrictions/single_column_primary_key_restrictions.hh @@ -101,6 +101,10 @@ public: return boost::algorithm::all_of(_restrictions->restrictions(), [b] (auto&& r) { return r.second->has_bound(b); }); } + virtual bool is_inclusive(statements::bound b) const override { + return boost::algorithm::all_of(_restrictions->restrictions(), [b] (auto&& r) { return r.second->is_inclusive(b); }); + } + virtual bool uses_function(const sstring& ks_name, const sstring& function_name) const override { return _restrictions->uses_function(ks_name, function_name); }