mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-06-28 07:47:39 +00:00
fix(sql_helpers): adjust parenthesis nesting depth comment
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user