From c696d502c556c7312b46e3bf4390802100d39c7b Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 10 Dec 2025 10:10:55 +0200 Subject: [PATCH] extractTableAndColumn --- pkg/common/sql_helpers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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-- }