go-pg / pg

Golang ORM with focus on PostgreSQL features and performance
https://pg.uptrace.dev/
BSD 2-Clause "Simplified" License
5.67k stars 404 forks source link

fix: Fixed `NULL` not being formatted for slices/maps. #1930

Closed elliotcourant closed 1 year ago

elliotcourant commented 2 years ago

When a query parameter was a nil slice or a nil map, the value NULL would not be appended to the query. Instead 'null' would be appended to the query which is not correct.

Resolves #1908