missed filling out the numeric value indexes for patterns

This commit is contained in:
Timothy Stack 2017-03-01 09:07:32 -08:00
parent 71aa54ad4d
commit 3fed519d0c

View File

@ -1414,6 +1414,17 @@ void external_log_format::build(std::vector<std::string> &errors) {
} }
ivd.ivd_value_def = value_iter->second.get(); ivd.ivd_value_def = value_iter->second.get();
pat.p_value_by_index.push_back(ivd); pat.p_value_by_index.push_back(ivd);
if (!vd.vd_foreign_key && !vd.vd_identifier) {
switch (vd.vd_kind) {
case logline_value::VALUE_INTEGER:
case logline_value::VALUE_FLOAT:
pat.p_numeric_value_indexes.push_back(ivd.ivd_index);
break;
default:
break;
}
}
} }
} }