Closed cldellow closed 1 year ago
I first repro this with 3.39.0 (pysqlite3-binary 0.4.7post6)
Hm, I think the new behaviour is by design :(
See https://sqlite.org/forum/forumpost/c96206d45c6122e1c81fc18d220fd3d5e183aac9f08294fb242671398090a44d
The gist seems to be: the JSON functions can introduce a new JSON type (as opposed to the standard REAL, TEXT, BLOB, etc).
This type was previously allowed to escape subqueries, which introduced the opportunity for inconsistency.
It no longer is permitted to do that, and is serialized as a string when it escapes.
Can we get the same behaviour by explicitly casting to text?
Gives this output:
This was the root cause of #97