improvement: log mixed string/blob tag queries

This commit is contained in:
Greg Heartsfield 2023-02-01 07:49:46 -06:00
parent 1820e9c689
commit ab749e9cf0

View File

@ -828,6 +828,7 @@ fn query_from_filter(f: &ReqFilter) -> (String, Vec<Box<dyn ToSql>>, Option<Stri
params.append(&mut str_vals); params.append(&mut str_vals);
filter_components.push(tag_clause); filter_components.push(tag_clause);
} else { } else {
debug!("mixed string/blob query");
// create clauses with "?" params for each tag value being searched // create clauses with "?" params for each tag value being searched
let str_clause = format!("value IN ({})", repeat_vars(str_vals.len())); let str_clause = format!("value IN ({})", repeat_vars(str_vals.len()));
let blob_clause = format!("value_hex IN ({})", repeat_vars(blob_vals.len())); let blob_clause = format!("value_hex IN ({})", repeat_vars(blob_vals.len()));