Skip to content

2.16.1 - Further improve the nil value handling in arrays

Latest

Choose a tag to compare

@penny-for-vapor penny-for-vapor released this 18 Jul 20:11
218aaf6

What's Changed

Further improve the nil value handling in arrays by @gwynne in #280

The previous set of fixes was incomplete. This revision correctly handles types which do not accidentally end up going through the legacy fast path via conforming to the deprecated PostgresDataConvertible, as many built-in types still do. The slow path through Encodable can now detect the correct psqlArrayType for all-nil arrays as long as the underlying Element type conforms to PostgresArrayEncodable.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.16.0...2.16.1