You are not logged in.
Pages: 1
If I save a record with an empty RAWUTF8 value I'm getting an error reading it back. The first line of IsJSONString is giving an AV accessing a nil string (called by GetJSONValues). I've found that sqlite3_column_type is returning SQLITE_NULL for these fields which seems to cause the problem.
Strangely old data is read fine, it only when adding new records.
Can you give any suggestions where I am going wrong. (using delphi 2007)
Offline
I was not able to reproduce it with the source code repository version with low-level test coverage.
But you are 100% right: it's strange with revision 3.7.5 of the database engine: when you write a "" TEXT into the database, it does return a SQLITE_NULL when you retrieve this field...
I've modified the code so that there is no access violation, and that a NULL JSON field content will be decoded as '' when assigned to a string property.
I've also added the corresponding regression test.
Thanks for the feedback.
Offline
Thanks, it works fine now.
Offline
Pages: 1