Skip to content

Commit

Permalink
fix: spi search len query
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai committed Jun 17, 2024
1 parent db62211 commit e8a68ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spi/spi-search/src/serv/pg/search_pg_item_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ pub async fn search(search_req: &mut SearchItemSearchReq, funs: &TardisFunsInst,
));
} else if ext_item.op == BasicQueryOpKind::Len {
if let Some(first_value) = value.pop() {
where_fragments.push(format!("(length(ext->>'{}')={})", ext_item.field, sql_vals.len() + 1));
where_fragments.push(format!("(length(ext->>'{}') = ${})", ext_item.field, sql_vals.len() + 1));
sql_vals.push(first_value);
} else {
return err_not_found(ext_item);
Expand Down

0 comments on commit e8a68ec

Please sign in to comment.