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 <jan.ciolek@scylladb.com>
This commit is contained in:
Jan Ciolek
2022-01-13 18:22:04 +01:00
parent ab89fc316b
commit ec6f93d0c7

View File

@@ -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()");
},