Skip to content

Commit c97843b

Browse files
authored
Update RX901__UnqualifiedJoins.toml
Got the rule functioning but unsure of edge cases.
1 parent 77d9e67 commit c97843b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dialects = ["TEXT"]
2-
rules = ["(?i)(?<=^|\\s)FROM(\\s+[\\w\\.]+(\\s+\\w+\\s*)?,)+(\\s+[\\w\\.]+\\s+\\w+\\s*)(WHERE|JOIN)(?=$|\\s|;)"]
2+
rules = ["(?i)FROM\\s+[^,]*,\\s+(?=.*\\bWHERE\\b).*"]
33
passOnRegexMatch = false
44
description = "Unqualified Join statement"

0 commit comments

Comments
 (0)