diff --git a/pkg/common/sql_helpers.go b/pkg/common/sql_helpers.go index 1cf0089..e110750 100644 --- a/pkg/common/sql_helpers.go +++ b/pkg/common/sql_helpers.go @@ -471,9 +471,10 @@ func findOperatorOutsideParentheses(s string, operator string) int { } // Track parenthesis depth - if ch == '(' { + switch ch { + case '(': depth++ - } else if ch == ')' { + case ')': depth-- }