We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c049081 commit c026b1cCopy full SHA for c026b1c
sql.go
@@ -40,7 +40,7 @@ func inSQL(field string, data []interface{}) (string, []interface{}, error) {
40
}
41
42
func GetSQL(data Filter, config *SQLConfig) (string, []interface{}, error) {
43
- if data.Kids == nil {
+ if data.Kids == nil && data.Field != "" {
44
if config != nil && config.Whitelist != nil && !config.Whitelist[data.Field] {
45
return "", nil, fmt.Errorf("field name is not in whitelist: %s", data.Field)
46
0 commit comments