Skip to content

Commit

Permalink
spi-search:fix adv query is not null.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Aug 7, 2024
1 parent 2097e2d commit 9e08ec4
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 @@ -583,7 +583,7 @@ pub async fn search(search_req: &mut SearchItemSearchReq, funs: &TardisFunsInst,
} else if ext_item.op == BasicQueryOpKind::IsNull {
sql_and_where.push(format!("ext ->> '{}' is null", ext_item.field));
} else if ext_item.op == BasicQueryOpKind::IsNotNull {
where_fragments.push(format!(
sql_and_where.push(format!(
"(ext ->> '{}' is not null or ext ->> '{}' != '' or ext ->> '{}' != '[]')",
ext_item.field, ext_item.field, ext_item.field
));
Expand Down

0 comments on commit 9e08ec4

Please sign in to comment.