From b266a84324efbd251f3116c7144540cae23bb20f Mon Sep 17 00:00:00 2001 From: saji Date: Wed, 6 Mar 2024 14:53:25 -0600 Subject: [PATCH] fix multiple name packet filter --- db.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db.go b/db.go index f434392..843e8c7 100644 --- a/db.go +++ b/db.go @@ -170,7 +170,8 @@ func (tdb *TelemDb) GetPackets(ctx context.Context, filter BusEventFilter, optio // if we're filtering by names, add a where clause for it. if len(filter.Names) > 0 { - names := strings.Join(filter.Names, ", ") + // we have to quote our individual names + names := strings.Join(filter.Names, `", "`) qString := fmt.Sprintf(`name IN ("%s")`, names) whereFrags = append(whereFrags, qString) }