Skip to content

Commit f5192f1

Browse files
authored
Filter nil upstream values from sql query - align with 1.5 code (#1085)
Signed-off-by: Kushal Harish Naidu <kushal.harish.naidu@ericsson.com>
1 parent c323660 commit f5192f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/cache/dbcache/dbpackagerevisionsql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ func findUpstreamRefsFromDB(ctx context.Context, namespace, prName string) (stri
486486
SELECT k8s_name FROM package_revisions
487487
WHERE k8s_name_space=$1
488488
AND revision != -1
489+
AND upstream_ref_name != ''
489490
AND upstream_ref_name=$2
490491
LIMIT 1
491492
`

0 commit comments

Comments
 (0)