fix(sql_helpers): adjust parenthesis nesting depth comment

This commit is contained in:
Hein
2026-06-23 09:41:40 +02:00
parent 48b72a7631
commit 11ef16f75a
+1 -1
View File
@@ -453,7 +453,7 @@ func containsTopLevelOR(clause string) bool {
func splitByAND(where string) []string { func splitByAND(where string) []string {
conditions := []string{} conditions := []string{}
currentCondition := strings.Builder{} currentCondition := strings.Builder{}
depth := 0 // parenthesis nesting depth depth := 0 // parenthesis nesting depth
inSingleQuote := false inSingleQuote := false
afterBetween := false // true after seeing BETWEEN at depth 0; next AND belongs to it afterBetween := false // true after seeing BETWEEN at depth 0; next AND belongs to it
i := 0 i := 0