Skip to content

2.16.0 - Fix handling of array bindings containing optional values

Choose a tag to compare

@penny-for-vapor penny-for-vapor released this 18 Jul 18:12
a8ce958

What's Changed

Fix handling of array bindings containing optional values by @gwynne in #279

  • Now requires Swift 6.1
  • We now use SQLKit’s SomeCodingKey instead of redefining it.
  • Encoding of nil binds to NULL is now on the fastest possible path instead of the slowest.
  • Values that conform to Postgres[Throwing]DynamicTypeEncodable but not Postgres[NonThrowing]Encodable are now handled on the fast path.
  • nil values in bound arrays having optional element types (which they should, as all arrays in Postgres have NULLable values) are now handled correctly instead of causing crashes.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.15.1...2.16.0