Skip to content

Commit

Permalink
fix: fix search formula
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Nov 1, 2024
1 parent d8a0188 commit f0d04ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class UnderlyingFormulaVisitor extends FormulaParserVisitor<string> {
})
.with("SEARCH", () => {
const args = this.arguments(ctx)
return `COALESCE(INSTR(LOWER(COALESCE(${args[1]}, '')), LOWER(COALESCE(${args[0]}, ''))), 0)`
return `COALESCE(INSTR(LOWER(COALESCE(${args[0]}, '')), LOWER(COALESCE(${args[1]}, ''))), 0)`
})
.with("LEN", () => {
const args = this.arguments(ctx)
Expand Down

0 comments on commit f0d04ea

Please sign in to comment.