Skip to content

Commit 8e0f056

Browse files
committed
allow union
1 parent c0d6438 commit 8e0f056

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

insight

357 KB
Binary file not shown.

internal/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var allowedFunctions = map[string]struct{}{
4949
}
5050

5151
var disallowedPatterns = []string{
52-
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
52+
`(?i)\b(INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
5353
}
5454

5555
// ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.

0 commit comments

Comments
 (0)