fix: queryRows returns [] not null for empty result sets
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled

This commit is contained in:
2026-07-08 12:50:13 +02:00
parent 3ea43adcfd
commit 5d15265f65

View File

@@ -850,6 +850,7 @@ func queryRows(ctx context.Context, pool *db.Pool, query string, args ...any) *m
cols := rows.FieldDescriptions()
var items []map[string]any
items = make([]map[string]any, 0)
for rows.Next() {
vals, err := rows.Values()
if err != nil {