uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.65k stars 221 forks source link

Nullzero not working with arrays #901

Open nsjplingrand opened 1 year ago

nsjplingrand commented 1 year ago

With github.com/uptrace/bun v1.1.14 and github.com/uptrace/bun/dialect/pgdialect v1.1.14 With bun:",nullzero,array", an insertion of nil makes bun to throw an error:

sql: Scan error on column index 2, name "my_array_column": bun: got , wanted []byte or string