Monorepo for Tangled โ€” https://tangled.org

appview/db: cure a few panics #394

merged
opened by oppi.li targeting master from push-ukznmmplmlul

when db.FilterIn(array) is used, the query compiler would panic on empty lists:

db.GetPipelineStatuses(
    s.db,
    db.FilterEq("repo_owner", repoInfo.OwnerDid),
    db.FilterEq("repo_name", repoInfo.Name),
    db.FilterEq("knot", repoInfo.Knot),
    db.FilterIn("sha", shas),
)

if shas was constructed to be an empty list, it would suffice for the filter to always fail and subsequently affect zero rows.

Signed-off-by: oppiliappan me@oppi.li

0
by oppi.li 0 comments
expand 1 commit
appview/db: cure a few panics
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lvlmyu5nyg22