Skip to content

4.4.2 - Handle JSON better

Latest
Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 18 Jan 12:21
e9fd69b

What's Changed

Handle JSON better by @gwynne in #107

This fixes an issue that arose with the release of SQLite 3.45.0, which includes support for a new “JSONB” internal representation. As a side effect, textual JSON data presented to SQLite as a BLOB is incorrectly treated as JSONB by the database, resulting in inexplicable errors when attempts are made to read the JSON back out again. Since we should always have been sending JSON to the database as TEXT in the first place, this is considered a general bugfix rather than purely a compatibility update.

Unblocks vapor/sqlite-nio#62.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 4.4.1...4.4.2