mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 16:35:51 -05:00
improvement: log mixed string/blob tag queries
This commit is contained in:
parent
1820e9c689
commit
ab749e9cf0
|
@ -828,6 +828,7 @@ fn query_from_filter(f: &ReqFilter) -> (String, Vec<Box<dyn ToSql>>, Option<Stri
|
|||
params.append(&mut str_vals);
|
||||
filter_components.push(tag_clause);
|
||||
} else {
|
||||
debug!("mixed string/blob query");
|
||||
// create clauses with "?" params for each tag value being searched
|
||||
let str_clause = format!("value IN ({})", repeat_vars(str_vals.len()));
|
||||
let blob_clause = format!("value_hex IN ({})", repeat_vars(blob_vals.len()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user