mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a regression caused by the fix for ticket [6c9b5514077fed34551f98e64c09a1] -
control characters allowed in JSON. FossilOrigin-Name: 8e7b611863247a3bf46a96ec4b47d24c0ae0d60c9cee968a1cfd1da157e7c9bb
This commit is contained in:
@ -356,6 +356,15 @@ do_execsql_test json-8.2 {
|
||||
SELECT a=json_extract(b,'$[0]') FROM t8;
|
||||
} {1}
|
||||
|
||||
# 2017-04-12. Regression reported on the mailing list by Rolf Ade
|
||||
#
|
||||
do_execsql_test json-8.3 {
|
||||
SELECT json_valid(char(0x22,0xe4,0x22));
|
||||
} {1}
|
||||
do_execsql_test json-8.4 {
|
||||
SELECT unicode(json_extract(char(0x22,228,0x22),'$'));
|
||||
} {228}
|
||||
|
||||
# The json_quote() function transforms an SQL value into a JSON value.
|
||||
# String values are quoted and interior quotes are escaped. NULL values
|
||||
# are rendered as the unquoted string "null".
|
||||
|
Reference in New Issue
Block a user