Quantcast

Regression in json()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Regression in json()

yahoo-18

The fix http://www.sqlite.org/cgi/src/info/4f1b5229a3bbc9d4 (Escape
control characters in JSON) introduced a regression.

> ./sqlite3
SQLite version 3.19.0 2017-04-12 17:50:12
[...]
sqlite> select json('"ä"');
Error: malformed JSON

I'd expect: "ä"

The reason is

http://www.sqlite.org/cgi/src/artifact/18d80526c34e3eab?ln=804

The variable c is declared as char
(http://www.sqlite.org/cgi/src/artifact/18d80526c34e3eab?ln=736)

If I'm not mistaken that should be:

unsigned char c;
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Loading...