mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Skip match to not add empty searches (#1522)
This commit is contained in:
parent
11351a4253
commit
18037ab4bd
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ func isChildForeignKeyError(err error) bool {
|
|||
//
|
||||
// The input columns must be sanitized if they are provided by the user.
|
||||
func searchLike(sql string, params []interface{}, match string, columns ...string) (string, []interface{}) {
|
||||
if len(columns) == 0 {
|
||||
if len(columns) == 0 || len(match) == 0 {
|
||||
return sql, params
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue