fix(db): convert slices to PostgreSQL array literals in queries
Some checks failed
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -32m17s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -31m49s
Build , Vet Test, and Lint / Build (push) Successful in -31m53s
Build , Vet Test, and Lint / Lint Code (push) Successful in -31m11s
Tests / Unit Tests (push) Successful in -32m31s
Tests / Integration Tests (push) Failing after -32m46s

This commit is contained in:
Hein
2026-05-07 14:33:35 +02:00
parent 157788b73b
commit 987a2a7faf
5 changed files with 114 additions and 5 deletions

View File

@@ -1529,7 +1529,7 @@ func (b *BunUpdateQuery) SetMap(values map[string]interface{}) common.UpdateQuer
// Skip primary key updates
continue
}
b.query = b.query.Set(column+" = ?", value)
b.query = b.query.Set(column+" = ?", common.ConvertSliceForBun(value))
}
return b
}