diff --git a/src/silo/storage/column_group.cpp b/src/silo/storage/column_group.cpp index 6797ef140..97c89f139 100644 --- a/src/silo/storage/column_group.cpp +++ b/src/silo/storage/column_group.cpp @@ -279,7 +279,7 @@ common::JsonValueType ColumnPartitionGroup::getValue( return common::dateToString(date_columns.at(column).getValues().at(sequence_id)); } if (bool_columns.contains(column)) { - OptionalBool value = bool_columns.at(column).getValues().at(sequence_id); + const OptionalBool value = bool_columns.at(column).getValues().at(sequence_id); if (value.isNull()) { return std::nullopt; }