From ec6f93d0c78468fecdd153fd60e1bf72875fb570 Mon Sep 17 00:00:00 2001 From: Jan Ciolek Date: Thu, 13 Jan 2022 18:22:04 +0100 Subject: [PATCH] cql3: expr: Handle subscript in test_assignment test_assignment can't be passed a column_value, so a subscript won't work as well. Signed-off-by: Jan Ciolek --- cql3/expr/prepare_expr.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cql3/expr/prepare_expr.cc b/cql3/expr/prepare_expr.cc index 17392047f7..9461c71891 100644 --- a/cql3/expr/prepare_expr.cc +++ b/cql3/expr/prepare_expr.cc @@ -995,6 +995,9 @@ test_assignment(const expression& expr, data_dictionary::database db, const sstr [&] (const column_value&) -> test_result { on_internal_error(expr_logger, "column_values are not yet reachable via test_assignment()"); }, + [&] (const subscript&) -> test_result { + on_internal_error(expr_logger, "subscripts are not yet reachable via test_assignment()"); + }, [&] (const token&) -> test_result { on_internal_error(expr_logger, "tokens are not yet reachable via test_assignment()"); },